Now the customer wants to do an interface that will need daily sqlsever in some new business data import to view the several tables in an oracle database, the key also regularly run automatically every day, to be able to achieve unattended... Idea is to view before export into XML or TXT, then import, but don't know how to do that run automatically, development with pb9.0, what are the appropriate function can be used?
Give some other Suggestions or a great god, as long as can meet customer requirements!
CodePudding user response:
Set up the main program timing interval time (num), set the interval to perform in PB window timer events, write down sqlinsert into the select * from A to B etc.
If it is a SQL database, you can do with the job in the background
CodePudding user response:
Windows program task
And then there is the Timer ()
And then there is more time
No you don't have to schedule a task, direct timing boot, boot to run automatically, just finished directly automatic shutdown
CodePudding user response:
Set up the main program timing interval time (num), set the interval to perform in PB window timer events, write down sqlinsert into the select * from A to B etc.
If it is a SQL database, you can do with the job in the background
CodePudding user response:
If the SQL and ORACLE can be connected to each other, why not use the JOB?
CodePudding user response:
reference 1st floor wz19870429 response: set up the main program timing interval time (num), set the interval to perform in PB window timer events, write down sqlinsert into the select * from A to B etc. If it is a SQL database, you can do with the job in the background Sqlsever and oracle database can't connected to each other, I'm still trying to use the timer timing execution from sqlsever found to specify the data, and then write TXT or there is a similar to c # dataset, and then connect the oracle, amazon to buy a book pb, saw a datastore, pb in should be able to come out of data respectively, a total of 31 table... CodePudding user response:
PB with different transaction connecting two different database, through the timer () to control events trigger time, and then put the needed data retrieved to datasotre, data written to a connection oracel datastore again, and then save the data, CodePudding user response:
refer to 6th floor smilysoft response: Plain Text code? 1 pb with different transaction connect two different database, through the timer () to control events trigger time, and then put the needed data retrieved to datasotre, data written to a connection oracel datastore again, and then save the data, Yes, PB write programs, two transactions connection, A connection SQL, B connecting ORACLE And then, make two data window, even to the SQL data window, B data window to the ORACLE Program starts, A data window to extract data, then write data to B data window, the last UPDATE data window, B Then the program exits In WINDOWS, use the program timing task execution process CodePudding user response:
refer to 6th floor smilysoft response: Plain Text code? 1 pb with different transaction connect two different database, through the timer () to control events trigger time, and then put the needed data retrieved to datasotre, data written to a connection oracel datastore again, and then save the data, Ha ha thank you, I will try CodePudding user response:
refer to 6th floor smilysoft response: Plain Text code? 1 pb with different transaction connect two different database, through the timer () to control events trigger time, and then put the needed data retrieved to datasotre, data written to a connection oracel datastore again, and then save the data, A great god, and now I have two databases are good, and had put the need to retrieve the data retrieved in a datastore, and two problems, how datastore wrote to another datastroe, then how to write? I use Bdatastore=Adatastore, but you don't know how to update CodePudding user response:
references 9 f xiaoqiangsweet response: refer to 6th floor smilysoft response: Plain Text code? 1 pb with different transaction connect two different database, through the timer () to control events trigger time, and then put the needed data retrieved to datasotre, data written to a connection oracel datastore again, and then save the data, A great god, and now I have two databases are good, and had put the need to retrieve the data retrieved in a datastore, and... Check the RowsCopy () function CodePudding user response:
references to the tenth floor smilysoft response: references 9 f xiaoqiangsweet response: refer to the sixth floor smilysoft response: Plain Text code? 1 pb with different transaction connect two different database, through the timer () to control events trigger time, and then put the needed data retrieved to datasotre, data written to a connection oracel datastore again, and then save the data, A great god, and now I have two databases are good, and have to be... Ha ha have succeeded ~ thank you very much CodePudding user response:
Every day will be a few sqlsever view new business data import to an oracle database In sqlsever build a task is done directly, need what PB Not the whole of PB exe sick people? Or don't want to let the user feel too simple? CodePudding user response:
If it is run automatically, no need to pb, directly on the Oracle or used automatic homework, timing to extract data, efficiency is tall, script modification is convenient, CodePudding user response:
Used with automatic perform administrative tasks (SQL Server agent); If the oracle, using dbms_job package; CodePudding user response:
Need not so difficult, you can create two connection, even the two databases at the same time, and then use code to write, have what difficult I refer to write before yourself String sql1, nfyf String sb_rq, sb_rq1 Int I Sb_rq=string (today (), '- dd yyyy - mm) The date sj1 Sj1=RelativeDate (date (sb_rq) - 3) Sb_rq1=string (sj1, 'yyyy - mm - dd) String orabz1 net_flog1, sername1, with username1 is ora1 String orabz2 net_flog2, sername2, username2, ora2 Orabz1=profilestring (" hs_imp. Ini ", "sys_loca", "ora_ver", "") Net_flog1=profilestring (" hs_imp. Ini ", "sys_loca", "net_flog", "") Sername1=profilestring (" hs_imp. Ini ", "sys_loca", "sername", "") With username1 is=profilestring (" hs_imp. Ini ", "sys_loca", "username", "") If orabz1='or isnull (orabz1) then Messagebox (' sorry ', 'connecting local server without system initialization. ') The halt; End the if Choose a case orabz1 Case '1' Ora1="O73 ORACLE 7.3" Case '2' Ora1="O84 Oracle8/8 I (8. X. 4 +)" Case '3' Ora1="O90 Oracle9i (9.0.1)" Case '4' Ora1="O84 Oracle8/8 I (8. X. 4 +)" The end choose The SQLCA. DBMS=ora1 If net_flog1='1' then The SQLCA. ServerName=sername1 End the if The SQLCA. LogPass=with username1 is The SQLCA. LogId=with username1 is The SQLCA. The AutoCommit=False The SQLCA. DBParm="PBCatalogOwner='" + with username1 is +"' " Connect using the sqlca; ///////////////////////////////////////////// nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull