Setting a import job in oracle
Can you tell me where i can find a good documentation that shows how to create a job in orcle.
I would like to schedule a task which will run insert scripts everyday...
Hi,
In 10g you can use the Scheduler to run a PL/SQL block every day.
You can find documentation on DBMS_SCHEDULER here
http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm
and on creating a job here
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/scheduse.htm#i1006395
Here is sample dbms_scheduler code to run a plsql_block at 8pm every day
grant create job to user_schema ;
then as that user
BEGIN
dbms_scheduler.create_job(
job_name => 'my_nightly_job',
job_type => 'PLSQL_BLOCK',
job_action => 'schema.my_stored_proc();'
repeat_interval => 'FREQ=DAILY;BYHOUR=20;BYMINUTE=0;BYSECOND=0',
comments => 'this job runs every day at 8pm',
enabled=>true);
END;
Hope this helps,
Ravi.
Similar Messages
-
How to set maximum number of jobs in oracle
Could pls tell explain me about how to set maximum number of jobs in oracle....
Regd,
MahiI don't think there is any limit on number of jobs that can be submitted to Oracle. However, there is a limit on the number of processes that would execute those jobs (governed by JOB_QUEUE_PROCESSES).
Message was edited by:
Satish Kandi
Typo corrected. -
I wander where to set import job for transports
I wander where to set import job for transports to be imported automatically. On transport domain controller I can not manage other job than the one for the system itself.
On the system which is not transport domain controler I have only display functionare you asking for 'automatic import' in QAS/PRD ?
When you go to STMS import queue in a particular system like QAS, there you can see a button 'import all'. This will enable to you schedule automatic import periodically in intervals for eg. 15 min or whatever you want.
just click on import all and it will ask for inputs and schedule
OR, do you want to confirm for RDDIMPDP job ?
Run report RDDNEWPP to schedule RDDIMPDP
Edit: Note 11677 - Transports with event-controlled RDDIMPDP -
How to schedule jobs in Oracle?
Hello everyone,
Can you explain me how to schedule job in oracle?
I want to execute one stored procedure weekly. How would I schedule job to execute that procedure weekly?
Regards
SwatiSwati wrote:>
> Or can I schedule this job in oralce itself?
> Regards
Hi,
before 10g:
you may check the dbms_job package in ORACLE.
simply it can execute i.e. a procedure with a scheduled time pattern:
DBMS_JOB.SUBMIT (
job OUT BINARY_INTEGER,
what IN VARCHAR2,
next_date IN DATE DEFAULT sysdate,
interval IN VARCHAR2 DEFAULT 'null' );
example (the commit is important because without it no job will be started): weekly job at 9 a.m.
BEGIN
DECLARE
v_JobNum NUMBER;
BEGIN
DBMS_JOB.SUBMIT(v_JobNum,'your_proc;',sysdate,'trunc(sysdate)+7+9/24');
commit;
end;
END;
sysdate:
your date when to execute it
trunc(sysdate)79/24 :
execute the job weekly , reset to midnight , add 9 hours. the interval has to be set that way that you avoid a sliding job
10g and above:
you have a additional package dbms_scheduler (a more advanced implementation)
please check the documentation -
Import error on Oracle Database Express 10.2.0.1.0
Hi,
I try to import data from oracle V10.01.02 running on SUSE10 Linux to
oracle 10g (10.1.0.2.0) running on Windows Server 2003.
I am able to import the big part from my ata, but not all data.
The begin of my log file is:
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0
- Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.01.00 via conventional path
And after some time I receive:
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "SAFCI"."EMP"."NAME"
(actual: 65, maximum: 64)
Column 1 1000005025
Column 2 ??????? ???????
Column 3 19-SEP-2002:00:00:00
Column 4 9089
Column 5 ??. ?????
Column 6 1.9828
Column 7 377.77
Column 8 75.55
Column 9 ???????????? ???????? ? ??? ???? ? 32 ??.
Column 10 19-SEP-2002:00:00:00
Column 11 ?????? ?????, ?.?. 172747675, ???. 23.11.200?
Column 12 ????????? ?????????
Column 13 ? ????
Column 14 T
Column 15
Column 16 F
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "SAFCI"."EMP"."NAME"
(actual: 65, maximum: 64)
Column 1 1000006408
Column 2 ??????? ???????
Column 3 05-NOV-2002:00:00:00
Column 4 9089
Column 5 ??. ?????
Column 6 1.939
Column 7 82
Column 8 16.4
Column 9 ?????????? ? ???? ???? ? 40 ??.
Column 10 05-NOV-2002:00:00:00
Column 11 ?????? ?????, ?.?. 172747675, ???. 23.11.200?
Column 12 ????????? ?????????
Column 13 ? ????
Column 14 T
Column 15
Column 16 F 36943 rows imported
I can not understand this problem, because I exported the hole user and
also try to import the hole user in my new system.
Pls., can some one point me to some paper about this problem or help me
to solve the problem.
Thanks
configuration Oracle10g (EXP source)
SQLWKS> select * from nls_database_parameters
2>
PARAMETER VALUE
NLS_LANGUAGE BRAZILIAN PORTUGUESE
NLS_TERRITORY BRAZIL
NLS_CURRENCY R$
NLS_ISO_CURRENCY BRAZIL
NLS_NUMERIC_CHARACTERS ,.
NLS_CHARACTERSET WE8ISO8859P1
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD/MM/RR
NLS_DATE_LANGUAGE BRAZILIAN PORTUGUESE
NLS_SORT WEST_EUROPEAN
NLS_TIME_FORMAT HH24:MI:SSXFF
NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
NLS_DUAL_CURRENCY Cr$
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.1.0.2.0
configuration Oracle10g Express (IMP destination)
SQL> select * from nls_database_parameters;
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.2.0.1.0Hi
Your import database use a multibyte characterset, your export db a singlebyte cs.
This means, a char can need more than 1 byte.
Try this before import (and before create tables!!):
alter system set nls_length_semantics=char;Greetings
Sven -
Import job RSI_IMPORT_CCMS_JOBS is not working in Redwood Cronacle
Hi,
We are facing problems in the redwood cronacle, where in the standard import job RSI_IMPORT_CCMS_JOBS is not working. When ever we are running the script, the status of the import job goes to waiting and never gets completed. When its killed and re-run it again moves to waiting status.
Cronacle version : 7.0.4.2. Hope some one will help me out to solve this issue.
Thanks,
Arun RaghavanHi,
as mentioned by Anton in his previous post, the import of abaps and variants is a kind of nice to have that CPS does for you. The import of abap and variant data enables CPS to create a Script with the defaults all set and ready for you to submit. Having this data in CPS also means that when you submit your CPS SAP Script the parameter values for instance,client, abap,variant will only be a valid combination. If you remove the Script Parameter constraints for your CPS Script then you can submit your own Script (using a copy of RSI_ABAP_RUN or RSI_ABAP_RUN_PRINT but with the param constraints removed) with whatever values you like. If you enter a valid combination the SAP job will run. If invalid you'll get an error when trying to submit in SAP. Obviously the parameter constraints ideally are there to prevent this second scenario.
In terms of why the import of variants seems to hang; you haven't got variants begining with '&' have you? CPS doesn't like these 'dynamic' variants. I have had problems in the past where this is the case.
Regards,
Simon -
Import job failes with ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT
Hello everyone,
I need a help on importing data from a schema in server 1 to the same schema in server 2 via network link. I receive following error when I try to submit a job on Enterprise Manager:
Import Submit Failed
ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 5806 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 7812 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 8608 ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT_JOBS", line 273 ORA-06512: at "SYSMAN.MGMT_JOBS", line 86 ORA-06512: at line 1
Sql of the job:
declare
h1 NUMBER;
begin
h1 := dbms_datapump.open (operation => 'IMPORT', job_mode => 'FULL', remote_link => 'B_PROD_LINK', job_name => 'BIMPORTFRMPRDTORPT4', version => 'COMPATIBLE');
dbms_datapump.set_parallel(handle => h1, degree => 1);
dbms_datapump.add_file(handle => h1, filename => 'IMPORT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
dbms_datapump.set_parameter(handle => h1, name => 'REUSE_DATAFILES', value => 0);
dbms_datapump.set_parameter(handle => h1, name => 'TABLE_EXISTS_ACTION', value => 'TRUNCATE');
dbms_datapump.set_parameter(handle => h1, name => 'SKIP_UNUSABLE_INDEXES', value => 0);
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
dbms_datapump.detach(handle => h1);
end;
It says network link is active when I test the network link to make sure its connectivity. I create the network link as a system account. I'm trying to do an import from an Oracle database 10.2.0.2 to 11.2.0.1. My 10g database is on ms windows 2003x64 while my 11g database is on OEL 5.4x64.
What should I do for now?
Thank you.
Edited by: user12144220 on Nov 4, 2012 5:02 AMIt will be wise to run the Oracle supply streams health check script to check your existing streams environment.
From the result, you can also open a tar with Oracle to see if they can help you with the setup.
In addition to the ORA-01403 error, you can also run some of the Oracle Streams packages (Managing Apply Errors) to see the full detail of what is missing that caused the Ora-01403 error.
I will also try to implement a smoke test using the simple heartbeat table suggested by Oracle Streams, if that is working, then you can begin your full scale setup in your environment knowing that the base Streams Structure is setup correctly.
HTH -
Hi ,
how can i schedule a job from Oracle ??
this is what i declared
create or replace PROCEDURE myjob
IS
v_job number;
begin
dbms_job.submit(v_job,
'PLSQL_program_I_want_to_run;',
sysdate,
'sysdate+1/24');
end;
ques :
1. how shld i schedule it to run every 15 minutes ? i saw from somewhere that 1/144 ==> 10 minutes ? i dun quite understand
if 1/24 equals 1 hr
then for 15 minutes
can i do this ((1/60)*15)/24 ??
2. once i execute this procedure manually , it shld be running as per the next sheduled dates ?
3. can this procedure somehow be set in such a way that if oracle db is up after being down for some reasons , this procedure can auto kickoff by itself ?
appreciate ur advise
tks & rdgsHi,
If you are using Oracle release 10g or higher you should be using dbms_scheduler instead of dbms_job for several reasons.
1) Scheduling every 15 minutes is much easier with dbms_scheduler e.g.
begin
dbms_scheduler.create_job(
job_name=>'myjob',
job_type=>'plsql_block',
job_action=>'scott.mypackage.myproc(3);',
repeat_interval=>'freq=hourly;byminute=0,15,30,45;bysecond=0',
enabled=>true
2) Now that jobs have real user-specified names, killing them is easier
exec dbms_scheduler.stop_job('myjob')
This will run the job at X:00, X:15, X:30, X:45 as long as the database is running (even after restarts) and you can pick any job_name you want.
This should meet all your requirements. Hope this helps.
-Ravi -
IPhoto '09 can't "locate" a recent set of imported images
ISSUE
NOTE: This is for a MANAGED iPhoto library NOT a Referenced one, and the original image files DO exist and are located in both the source location and the iPhoto Library.
Late last friday (11/6) suddenly started getting the following error messages on a specific set of images imported into iPhoto from an external Hard Drive:
• The photo “classes.nib” could not be opened, because the original item cannot be found.
The quoted filename varies, but are all like the above, NOT the actual image filename.
I've had the message before, (rarely and not for years) but normally the filename in quotes is the name of the selected image i.e. "IMG_2251.jpg, etc. and has always been due to the actual file no longer existing for one reason or another (usually some thing I did)
The error message only appears during Preview of the image set in the Library >"Photos" index section.
I am currently ignoring the warning, since:
• the images DO appear to exist (in iPhoto Library> Originals > [the year] > [the date]
• are obviously being managed by iPhoto,
• can be edited by iPhoto (see more info below)
But this obviously makes me nervous about the integrity of my photo library (i do have time machine and some disc media backups of many (not all, yet) albums, but still ...
CONFOUNDING FACTORS
1. Despite the error message:
• the image preview appears (not an "!" or "?") before and after dismissal of the message
• I can continue on to edit the image from the preview step.
• I can right click on the preview, select "Show Original File" and iPhoto locates the original image in the iPhoto Library Package file.
2. It does not appear if:
• I ignore the message and continue on to to edit the image
• I preview the image in the "Library > Events" index section.
• I preview the image in the "Recent > Last Import" index section.
3. Trashing, and emptying trash (from any index view) then re-importing them hasn't helped.
4. All offending photos can be opened, viewed and edited in various image viewers, editors (Preview.app, the Finder Quickview, Photoshop CS 3, Graphic Converter
5. Subsequent imports don't appear to have the problem.
SUGGESTS:
• A database problem?
RESOLUTION STEPS:
Attempted with no corrective results.
1. Trashed problem photos and emptied iPhoto Trash, reimported images from Ext. HD via drag-n-drop to library index
2. Above, re-imported via File > Import to Library ...
3. Above 1 and 2 import steps with files copied to Local HD
4. Step 3 above with duplicated files (via File > Duplicate)
5. Opened a photo file in Preview, did save as ..., imported into iPhoto
6. Step 5 above with Photoshop CS3, slightly cropped image, saved as, imported into iphoto.
7. Ran "Disk Utility > Verify and Repair Disk" from Snow Leopard Install Disc (there were file and folder count mismatch issues)
8. Re-ran Verify afterwards with clean bill of health.
RECREATION STEPS:
Unknown on how to initially trigger but the last and only iPhoto Console logs appear to be from around the time the issue began:
11/6/09 9:07:39 AM [0x0-0x1e51e5].com.apple.iPhoto[3976] Fri Nov 6 09:07:39 Trebor-4.local iPhoto[3976] <Error>: kCGErrorIllegalArgument: CGSShapeWindow
11/6/09 9:07:39 AM [0x0-0x1e51e5].com.apple.iPhoto[3976] Fri Nov 6 09:07:39 Trebor-4.local iPhoto[3976] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
11/6/09 3:05:24 PM ScreenSaverEngine[6784] ILLogger ILMediaBrowserPathWatcher: ** Error in ILMediaBrowserPathWatcher startFSEventStream failed to start for paths: (
"/Users/Lyle/Pictures/iPhoto Library"
11/6/09 10:18:36 PM [0x0-0x2d62d6].com.apple.iPhoto[6959] Fri Nov 6 22:18:36 Trebor-4.local iPhoto[6959] <Error>: CGImageDestinationAddImageFromSource image 0 of source is nil
11/6/09 10:18:36 PM [0x0-0x2d62d6].com.apple.iPhoto[6959] Fri Nov 6 22:18:36 Trebor-4.local iPhoto[6959] <Error>: CGImageDestinationFinalize image destination does not have enough images
11/6/09 10:25:50 PM iPhoto[345] ILLogger ILMediaBrowserPathWatcher: ** Error in ILMediaBrowserPathWatcher startFSEventStream failed to start for paths: (
"/Users/Lyle/Library/Preferences"
Any thoughts or insights would be appreciated.
Thx
Message edited for typos and format errors by Lyle TurnerRESOLVED (if not altogether answered)
Performed the iPhoto database rebuild cha-cha again - this time selecting ALL checkboxes (previously only selected "Rebuild from backup)
After rebuild, some photos appeared to be fixed, but photos that still showed the the error were all within specific Photo Rolls and DID NOT allow me to "show original file" on right click.
On inspection within the iPhoto Library package, the remaining problem photo files were all ALIASES, not actual image files.
Although the error dialog allowed me to to try and find the missing original, browsing for it didn't work. All image files listed in the browser were grayed out and not selectable.
SO, not sure if this was kosher, but the following seemed to clear things up:
* found real images for the aliased files on archived media
* copied the real files over the aliases of the same file name
* accepted finders warning that I was replacing files of the same name
* returned to the iPhoto rolls and previewed the previously error prone images
NOTE: I DID NOT close iPhoto while I was doing this. Not sure how dangerous that was.
iPhoto seemed none the wiser, and the error message was gone. (oddly, initially the first photo in each affected roll still threw up the error, but when I moved on the the next one and came back, all seemed well and the message was gone)
Did not appear to be a rhyme or reason to which rolls contained aliases and which didn't - photo/file date stamps weren't contiguous (so it wasn't a problem of a series of event imports from the camera/card.)
Best I can figure is somehow some sets were imported as referenced files although my iPhoto is set to use a managed library.
I'm in the process of consolidating some older manually managed image archives, so I don't know when this happened, or if it's the result of some accidental duplication, aborted import or what. I DO know that I had not encountered this error before, and I know I reviewed the affected rolls some time in the past, long after I had imported them.
Well, all seems to be on the mend. So life is good.
Except for those crufty leftovers. May still want to do something about that.
Thanks to Terence for leading me to look in the right places.
Message was edited by: Lyle Turner -
I'm having a problem creating a job in oracle . I want at the end of each day to put some values from table1 in table2, empty table1, and then delete and re-create some sequences..because I have auto-increment id and each day I want to sequence to start from 0 again. So long story short I tried creating this job using toad for oracle.
if I just put the first 2 tasks(put data from table1 in table 2, then delete) in the job it works like a charm. if I also add the drop sequence, create sequence I get an error saying
Encountered the symbol "DROP" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
so this is what I want the job to do:
insert into A(a,b,c) select a2,b2,c2 from B;
delete from A;(so far it would work)
drop sequence ida_seq;
create sequence ida_seq
start with 1
increment by 1
nomaxvalue;
drop sequence idb_seq;
create sequence idb_seq
start with 1
increment by 1
nomaxvalue;
so anybody can give me a clue on why I get the error? maybe if someone can give me a link on how to do oracle jobs..cause if I google "oracle+job" I get only jobs(for work) in oracle...but I don't get stuff related to syntax and how to create jobs in oracle. 10x in advanceIf this is a PL/SQL question, then PL/SQL has no 'DROP' or 'CREATE' keywords and you would need to use dynamic SQL with EXECUTE IMMEDIATE.
btw there are various techniques around for resetting a sequence to start again at 1 using ALTER SEQUENCE, rather than dropping and recreating it. -
How to stop a Scheduler Job in Oracle BI Publisher 10g
Hello!
Can someone tell me how can I stop a scheduler job in Oracle BI Publisher 10g?
I scheduled a bursting job to run a report but is running during two days.
I would like to stop it.
Thanks.
Edited by: SFONS on 19-Jan-2012 07:16Unfortunately there is no way to stop a job once it is being executed. Yes as you read, it is not possible once job has started.
Same thing applies for running queries.
Once queries are sent to the DB BIP loses control over them. The message you see (if any) "Click Here to Cancel" does not stop any query
it is just a message.
I guess you will have to stop/kill the process in your DB
regards
Jorge
p.s If you consider your question answered then please mark my answer as *"Correct"* or *"Helpful"* -
Can I set up a job that kills multiple jobs?
So, I've got some jobs that access a remote DB, and the link is not terribly reliable. When it hiccups, if a job is running, it hangs forever. Using this forum, I was able to set up a job that is triggered when a job goes over max duration, and it simply kills and restarts the job, it works great for the one job that typically runs long enough to get hit on a daily basis. This morning, I noticed one of the other jobs hung. So, I realize I can easily set up another kill job that gets fired off when this other job hangs, but what I'd really like to do is have one master kill job that can be used to kill any of several jobs so I don't have to have a kill job for each job that might get hung.
Is there a way to reference, in the PL/SQL block, any of the "tab" fields used in the condition block? I'd like to check tab.user_data.object_name in the PL/SQL block and kill/restart the appropriate job. So, my condition would be a generic event_type of JOB_OVER_MAX_DUR and would fire for any job meeting that condition. Possible? Feasible? Dangerous?Thanks for the reply, Tom.
I am using version 10.2.0.4.
Point of clarification: I don't want to kill multiple jobs on one execution. I just want to write one job that can handle killing any one of the several jobs that I'm having issues with. So, for example, I have jobs A, B, and C. I want one snipe job that is generically called when anything raises a job_over_max_duration event, and it would figure out which job (A,B, or C) that is stuck and kill it.
From your reply, it sounds like I could do this in 11g, but probably not in 10g?
Thanks again!
---dale -
How to handel a Batch job in oracle database
How to handel a Batch job in oracle database?
Regards
alokAlekh wrote:
lists of jobs execute concurrently.Thats a definition we all aware of ;), I meant do you want to execute the jobs in a sequence? is there any dependency? is it more like scheduling?
And What kind of jobs you are talking about? running PL/SQL programs? or stats collection? or DB backup?
Regards,
Prazy -
Error while importing tables from oracle database
Hi
I am getting the following error when i am trying to import table from oracle database.
my operating system is windows and my database is oracle.
[nQSError: 16001]ODBC error state: IM004 code:0 message:
[Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
please help me in resolving this issue.
Thanks and Regards,
RajHi Madan,
I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
go through below link, It will show navigation steps for migrating of EUL from Discoverer to OBIEE.But i need migration of workbooks and worksheets from Discoverer into OBIEE Answers.
http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/discomigration/migrate_disco_biee.htm
This is very great full help to me …
Advance thanks for your suggestions.
Regards
Duraga Prasad. -
How to create a load job in Oracle 9i
How do you create a basic load job in Oracle 9i? I'm really struggling with the syntax.
This is what I have so far and its not working. I am a Microsoft SQL Jr. DBA, Oracle is not a strong point :/.
Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
VARIABLE jobno NUMBER
BEGIN
DBMS_JOB.SUBMIT(:jobno,
'load data',
'infile oracle.csv',
'into TABLE HUB.PROVLKUP_LOAD_MATT',
'fields terminated by "|"',
'TRAILING NULLCOLS',
'(PROV_NO,PROV_NAME,FIRST_NAME,MI,TITLE,ADDRESS,CITY,COUNTY,STATE,ZIP,PHONE1,PHONE2,SPECIALTY,TAX_ID,PROV_NETWORK,EFF_DATE,TERM_DATE,PROV_TYPE,DO_NOT_REFER,DNR_DATE,DO_NOT_USE,NOTES)',SYSDATE, 'SYSDATE + 1');
COMMIT;
END;I actually want this job to be only run by the DBMS_JOB.Run command and not on auto schedule. Is there a way not to include a run date?
Edited by: 1007692 on May 23, 2013 11:38 AM
Edited by: 1007692 on May 23, 2013 11:39 AMWelcome to the forum.
Oracle 9i is a database version from the previous century.
But:
You can read about DBMS_JOB in the 9i documentation here:
http://www.oracle.com/pls/db92/homepage
Or do some searches on http://asktom.oracle.com
Anyway: if you want the job to run once, then omit the interval...
Oh, and don't forget to read {message:id=9360002} from the SQL and Pl/SQL FAQ here:
SQL and PL/SQL FAQ
Edited by: Hoek on May 23, 2013 8:09 PM
Maybe you are looking for
-
Why aren't images I captured using acrobat on a mac visible in a word document on a PC?
Hi guys this question has been asked before, but I can't find any answers that address the exact problem I'm having. I use a mac to create word documents that are read by other collaborators who use PCs. Until recently, I had created these documents
-
How data is replicated from SAP R/3 to SAP BW
Hi, I have to replicate datasource from SAP R/3 ECC 6.0 TO SAP BW. Please, help me in this regards Thks in advance - Mubeen.
-
Is there any tool to analyze explain plan and gives the report
Hi All, Is there any tool/scripts to analyze explain plan from plan_table and gives the output report Thanks, Sankar
-
How to get the details inside base domain name?
I need to extract the details inside the base DN like ou="" ,cn="" and so on.. Somebody please help me in getting the details inside the base domain name. I could able to get the attribute names and values for the domain name... Anyone please help me
-
since being in Mexico both my iPad and iPhone seem to be using up their batteries more quickly. Any thoughts on why that might be?