Oracle10g DBMS_DATAPUMP encryption_password parameter

I'm using the dbms_datapump package in Oracle database version 10.2.0.4. I know the command line utility expdp can take the encryption_password parameter, but I can't find any documentation for this parameter for the dbms_datapump package. This is strange because I thought the package was used to implement the datapump process. Is there some undocumented way to set the encryption_password parameter with a call to the dbms_datapump package?
I'm trying to implement a full datapump export using a database procedure which makes calls to the dbms_datapump package. I have this working except for encryption. We're using TDE, Transparent Data Encryption, for several columns in the database. The expdp utility will re-encrypt this data and password protect the encryption, but I can't find the procedure call for doing this using the dbms_datapump package. I know that Oracle 11 can do this, but I'm still stuck with Oracle 10.

I am trying to do everything within the database using a procedure which makes calls to the dbms_datapump package. I would rather not use the CLI because I am a database developer and I prefer to do everything in the database. In this case, the database is on a Windows 2003 server and the native cmd.exe scripting capability is insufficient. If I can't encrypt from a database procedure, then I'll download Windows Powershell and use that to make scripts. I'll want to juggle files around, do error detection and notification, update database log tables, and do other things that require decent scripting capability. I could do this in Linix or Unix easily. I guess it's time I learned Powershell.

Similar Messages

  • DBMS_DATAPUMP parallel parameter did not work

    Hi, I am using DBMS_DATADUMP with network link to load large table directly from one database to another database. I used parallel parameter to improve the performance. But looks the parallel did not work. Still only one worker to handle the import.
    The status is
    Job: LOADING
    Owner: TRI
    Operation: IMPORT
    Creator Privs: TRUE
    GUID: 25DB4B2BE420406B82A7AE159CF1E626
    Start Time: Wednesday, 22 April, 2009 15:37:04
    Mode: TABLE
    Instance: orcl
    Max Parallelism: 4
    EXPORT Job Parameters:
    IMPORT Job Parameters:
    Parameter Name Parameter Value:
    INCLUDE_METADATA 0
    TABLE_EXISTS_ACTION TRUNCATE
    State: EXECUTING
    Bytes Processed: 0
    Current Parallelism: 4
    Job Error Count: 0
    Worker 1 Status:
    Process Name: DW01
    State: EXECUTING
    Object Schema: TRI
    Object Name: ORDER_LINES
    Object Type: TABLE_EXPORT/TABLE/TABLE_DATA
    Completed Objects: 1
    Total Objects: 1
    Worker Parallelism: 1
    Worker 2 Status:
    Process Name: DW02
    State: WORK WAITING
    My source database is 10.2.0.4 compatible=10.2.0
    target database is 11.1.0.6
    My table is around 3G
    The API I am using is
    my_handle := dbms_datapump.open(operation => 'IMPORT',job_mode => 'TABLE',
    remote_link => my_db_link, job_name => my_job_name ,version=>'LATEST' ) ;
    dbms_datapump.set_parameter (my_handle, 'TABLE_EXISTS_ACTION','TRUNCATE');
    dbms_datapump.set_parameter (my_handle, 'INCLUDE_METADATA',0);
    dbms_datapump.metadata_filter (handle => my_handle, name => 'SCHEMA_EXPR',
    value=>'IN (''ORDER'')');
    dbms_datapump.metadata_filter (handle => my_handle, name => 'NAME_LIST',
    value => '''ORDER_LINES''');
    dbms_datapump.metadata_remap(my_handle,'REMAP_SCHEMA',old_value=>'ORDER',value=>'TRI');
    dbms_datapump.set_parallel(my_handle,16);
    dbms_datapump.start_job(my_handle);
    Edited by: tonym on Apr 23, 2009 10:49 AM

    Then I test to use API and network link to export large table from remote database with parallel parameter.
    my_handle := dbms_datapump.open(operation => 'EXPORT',job_mode => 'TABLE',remote_link => my_db_link, job_name => my_job_name ,version=>'LATEST' ) ;
    DBMS_DATAPUMP.add_file( handle => my_handle, filename => 'test1.dmp', directory => 'DATA_PUMP_DIR');
    DBMS_DATAPUMP.add_file( handle => my_handle, filename => 'test2.dmp', directory => 'DATA_PUMP_DIR');
    DBMS_DATAPUMP.add_file( handle => my_handle, filename => 'test3.dmp', directory => 'DATA_PUMP_DIR');
    DBMS_DATAPUMP.add_file( handle => my_handle, filename => 'test4.dmp', directory => 'DATA_PUMP_DIR');
    dbms_datapump.metadata_filter (handle => my_handle, name => 'SCHEMA_EXPR',value=>'IN (''INVENTORY'')');
    dbms_datapump.metadata_filter (handle => my_handle, name => 'NAME_LIST',value => '''INV_TRANSACTIONS''');
    dbms_datapump.set_parallel(my_handle,4);
    dbms_datapump.start_job(my_handle);
    Looks it did not use parallel either. This table is around 3G too.
    status:
    Job: LOADING_2
    Operation: EXPORT
    Mode: TABLE
    State: EXECUTING
    Bytes Processed: 0
    Current Parallelism: 4
    Job Error Count: 0
    Dump File: C:\ORACLE\ADMIN\OW\DPDUMP\TEST1.DMP
    bytes written: 69,632
    Dump File: C:\ORACLE\ADMIN\OW\DPDUMP\TEST2.DMP
    bytes written: 4,096
    Dump File: C:\ORACLE\ADMIN\OW\DPDUMP\TEST3.DMP
    bytes written: 4,096
    Dump File: C:\ORACLE\ADMIN\OW\DPDUMP\TEST4.DMP
    bytes written: 4,096
    Worker 1 Status:
    Process Name: DW04
    State: WORK WAITING
    Worker 2 Status:
    Process Name: DW05
    State: EXECUTING
    Object Schema: INVENTORY
    Object Name: INV_TRANSACTIONS
    Object Type: TABLE_EXPORT/TABLE/TABLE_DATA
    Completed Objects: 1
    Total Objects: 1
    Completed Rows: 4,652,330
    Worker Parallelism: 1
    Edited by: tonym on Apr 23, 2009 10:53 AM

  • Oracle10g - Startup hang - Parameter: local_listener

    Hello guys,
    i have got an error which i don't understand.
    I deleted an old entry from tnsnames.ora and forgot to delete the local_listener entry in the spfile/pfile.
    I read the following document: http://www.valentia-gmbh.de/twiki/pub/Viki/FehlerOra12508/Default_Listener_Setup.txt
    Normally it should give an error, if it can not be resolved... but in my database, the startup command only hung.
    It does no entry in alert.log or any trace file.
    It only hung and the sqlplus command was sleeping (refered with truss).
    It this a bug in Oracle 10gR2?
    For my understanding... i don't understand the use of local_listener. The pmon process also connects to the database when no listener is running...
    So in which case is the parameter needed?
    Thanks and Regards
    Stefan

    I switched back to the default listener.... that's why i delete the entry from tnsnames.ora and i forgot to delete the parameter in spfile...
    But liked described in the link above, there should be an error in alert.log... but in my case the database only hung... no log entry no action....
    Maybe this is a bug...
    Regards
    Stefan

  • Can we change GATHER_STATS_PROG (auto gather stat job) behavior

    Hi All,
    Is anyway we can change default oracle auto gather job ?
    We know that oracle gather job (GATHER_STATS_JOB, below 11g) will trigger base on the Maintenance Window, we have few huge Production environment.
    We're thinking to gather application schema stat by using our own scripts, thus would like to know is anyway we can still enable oracle auto gather stat
    but exclude application schema?
    Thanks in advance.
    Regards,
    Klnghau

    Hi All,
    Forgot to mention my oracle version is 10.2.0.4, and I think i find the solution from My Oracle support,
    Oracle10g: New DBMS_STATS parameter AUTOSTATS_TARGET [ID 276358.1]
    This is a new parameter in Oracle10g for the DBMS_STATS package.
    According to the documentation for this package in file dbmsstat.sql
    (under ORACLE_HOME/rdbms/admin):
    This parameter is applicable only for auto stats collection.
    The value of this parameter controls the objects considered for stats collection.
    It takes the following values:
    'ALL' -- statistics collected for all objects in system
    'ORACLE' -- statistics collected for all oracle owned objects
    'AUTO' -- oracle decides for which objects to collect stats
    Default is AUTO, i think i can chenge to ORACLE in my environment.
    Thanks

  • TDE (Encryption) and expdp (Datapump)

    Hi,
    I'm testing TDE's features on an Oracle 10g R2 database. I edit the sqlnet.ora then I created a wallet on database 1 (DEV1), a table, did inserts, pumped (expdp) data and tried re-import it in another database (DEV2) which I use with DataGuard for failover, but something went wrong. So I try re-create my wallet on the first database (DEV1) by alter system set wallet close and delete it from my hard drive and drop table purge. I went trought the whole process of creating the wallet and table but when I tried expdp I got the ORA-28362 master key not found.
    How could I not be able to export my data ? What can I do to do a clean deletion of the wallet and recreate it ?
    Thanks for you help
    Francis

    Thank you,
    but I already read those pages and understand them. But as I said, even though I delete and recreate the wallet, I can't get datapump to extract data with the ENCRYPTION_PASSWORD parameter. If I don't put this parameter everything is ok! but the data is not encrypted.

  • Problem in Initialization Parameter file...Oracle10g

    Hi all,
    I am working in oracle 10g.I created a pfile from an exiting spfile and changed the Processes parameter and then again created a spfile from this changed pfile.
    Didnt delete the previous spfile and bounced the database.
    At startup I encountered the error:ORA-01092.
    Could any one suggest a solution and reason for the same.
    Thanks and regards,
    Nupur

    You can always mention the location where u want ur spfile to be created while creating it from sqlprompt.
    If u dont specify the path then it will create in
    "$ORACLE_HOME/dbs"..
    When the oracle instance is started,it looks for the parameter file in the following order....
    1) spfileSID.ora
    2) default spfile
    3) initSID.ora
    4) default pfile
    so even if u dont mention Pfile while startup and if u have an spfile the db will definitely start from spfile......

  • .csv as parameter in a procedure

    Hi,
    I want to pass a .csv file in a Procedure as parameter which ahs following values:
    CODE NAME
    1 ABC
    2 DEF
    3 XYZ
    I want the procedure tot ake .csv file as parameter and in that procedure oracle sql loader will populate the records into TABLEA
    Any help will be needful for me
    Thanks n Regards

    user598986 wrote:
    Hi,
    The csv file would be placed in the Server.
    Is there any Procedure where the input file will be csv and the procedure will dynamicall populate the table using EXTERNAL TABLE
    Thanks and RegardsNo. I guess you need to understand what external tables are so do read the document.
    [External Tables|http://youngcow.net/doc/oracle10g/server.102/b14215/et_concepts.htm?bcsi_scan_F99B58ECC60FF47D=0&bcsi_scan_filename=et_concepts.htm]
    Edited by: Karthick_Arp on Nov 16, 2009 4:13 AM

  • Using dbms_datapump package to export the schema with the schema name as pa

    Hi,
    I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
    CREATE OR REPLACE PROCEDURE export
    IS
    h1 number;
    begin
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    dbms_datapump.detach (handle => h1);
    exception
    when others then
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    end;
    Thank you in advanced
    Sri

    user12062360 wrote:
    Hi,
    I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
    OK, please proceed to do so
    >
    CREATE OR REPLACE PROCEDURE export
    IS
    h1 number;
    begin
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    dbms_datapump.detach (handle => h1);
    exception
    when others then
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    end;
    EXCEPTION handler is a bug waiting to happen.
    eliminate it entirely

  • Trouble First Time Start after Installing Oracle10g on Windows Xp

    I have installed Oracle10g release2 on windows xp OS. My installation details are as under.
    Oracle_Base : C:\oracle\product\10.2.0\home2
    Oracle_Home / Global Database name : dadc.testdata
    Oracle_SID : dadc
    I am trying to connect and start sqlplus with following details
    username - SYSTEM
    password - ********
    connect string - dadc
    but on doing so, i am getting ora-12545 error.
    Can somebody explain me , why I am not able to start 'Sqlplus' after successful installation?
    Thanks
    Mukesh Contractor

    Hi,
    Oracle>>oerr ora 12545
    12545, 00000, "Connect failed because target host or object does not exist"
    // *Cause: The address specified is not valid, or the program being
    // connected to does not exist.
    // *Action: Ensure the ADDRESS parameters have been entered correctly; the
    // most likely incorrect parameter is the node name. Ensure that the
    // executable for the server exists (perhaps "oracle" is missing.)
    // If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the
    // host name to a numeric IP address and try again.
    check ur tnsnames.ora file.address parameter should contain ur server ip where oracle is running.
    Thanks
    Kuljeet

  • Report with user parameter is not runnig

    Hi
    I have created the report with user parameter p_deptno and qyery"select * from emp where depno=:p_deptno";
    when i run the report in paper layout a popup kind page will open and ask us to enter the deptno and based on input parameter it fetches record in report.
    if i tried the same thing with url :http://localhost:portno/reports/rwservlet?destype=cache&desformat=pdf&report=emp.jsp&userid=scott/tiger@orcl
    the parameter window not opening and and blank report will open with coloumn headings.
    help me to solve the problem.
    i am using devsuite oracle10g release 2 on linux(OEL4).

    Hello,
    You have to provide the parameter in the URL :
    For example :
    http://localhost:portno/reports/rwservlet?destype=cache&desformat=pdf&report=emp.jsp&userid=scott/tiger@orcl&p_deptno=10
    or use the Web parameter Form :
    http://localhost:portno/reports/rwservlet?destype=cache&desformat=pdf&report=emp.jsp&userid=scott/tiger@orcl&paramform=true
    Regards

  • DBMS_DATAPUMP package  ERROR ;;;; PLS HELP mE

    Hello Everybody,
    I have a problem using the DBMS_DATAPUMP package ;
    I have just created on procedure that lunch one job and put the dmp file into an oracle directory ; the procedure works fine until yesterday and sadly strange today the procedure does'nt work and i have this oracle message :
    ORA-31626: job does not exist
    I dont' know how to do since i have not changed the procedure !!!
    can someone help me please?
    thank you very much
    regards

    No i have just this error : ORA-31626: job does not exist
    from the execution time to the failure in the alert.log file I have only The value (30) of MAXTRANS parameter ignored.
    for the session nothing is changed
    below the code source :
    CREATE OR REPLACE PROCEDURE SP_DPUMP_EXPORT (
    P_DIRECTORY_NAME IN VARCHAR2
    AS
    || Procedure: here
    ||
    || Creates a nightly DataPump Export of all User schema
    ||
    idx NUMBER; -- Loop index
    JobHandle NUMBER; -- Data Pump job handle
    PctComplete NUMBER; -- Percentage of job complete
    JobState VARCHAR2(30); -- To keep track of job state
    LogEntry ku$_LogEntry; -- For WIP and error messages
    JobStatus ku$_JobStatus; -- The job status from get_status
    Status ku$_Status; -- The status object returned by get_status
    SELECT table_name, max_trans
    FROM user_tables;
    BEGIN
    -- Build a handle for the export job
    JobHandle :=
    DBMS_DATAPUMP.OPEN(
    operation => 'EXPORT'
    ,job_mode => 'FULL'
    ,remote_link => NULL
    ,job_name => 'GADNETOBJECTS'
    ,version => 'LATEST'
    -- Using the job handle value obtained, specify multiple dump files for the job
    -- and the directory to which the dump files should be written. Note that the
    -- directory object must already exist and the user account running the job must
    -- have WRITE access permissions to the directory
    DBMS_DATAPUMP.ADD_FILE(
    handle => JobHandle
    ,filename => 'GADDB01_'||TO_CHAR(SYSDATE-1,'YYYYMMDD')||'.dmp'
    ,directory => P_DIRECTORY_NAME
    ,filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE
    /* ,filesize => '100M'*/
    DBMS_DATAPUMP.ADD_FILE(
    handle => JobHandle
    ,filename => 'GADDB01_'||TO_CHAR(SYSDATE-1,'YYYYMMDD')||'.log'
    ,directory => P_DIRECTORY_NAME
    ,filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE
    -- Apply a metadata filter to restrict the DataPump Export job to only return
    -- selected tables and their dependent objects from the Miva schema
    /*DBMS_DATAPUMP.METADATA_FILTER(
    handle => JobHandle
    ,NAME => 'SCHEMA_EXPR'
    ,VALUE => '= ''ALL'''
    \* ,object_type => 'TABLE'*\
    -- Initiate the DataPump Export job
    DBMS_DATAPUMP.START_JOB(JobHandle);
    -- If no exception has been returned when the job was initiated, this loop will
    -- keep track of the job and return progress information until the job is done
    PctComplete := 0;
    JobState := 'UNDEFINED';
    WHILE(JobState != 'COMPLETED') and (JobState != 'STOPPED')
    LOOP
    DBMS_DATAPUMP.GET_STATUS(
    handle => JobHandle
    ,mask => 15 -- DBMS_DATAPUMP.ku$_status_job_error + DBMS_DATAPUMP.ku$_status_job_status + DBMS_DATAPUMP.ku$_status_wip
    ,timeout => NULL
    ,job_state => JobState
    ,status => Status
    JobStatus := Status.job_status;
    -- Whenever the PctComplete value has changed, display it
    IF JobStatus.percent_done != PctComplete THEN
    DBMS_OUTPUT.PUT_LINE('*** Job percent done = ' || TO_CHAR(JobStatus.percent_done));
    PctComplete := JobStatus.percent_done;
    END IF;
    -- Whenever a work-in progress message or error message arises, display it
    IF (BITAND(Status.mask,DBMS_DATAPUMP.ku$_status_wip) != 0) THEN
    LogEntry := Status.wip;
    ELSE
    IF (BITAND(Status.mask,DBMS_DATAPUMP.ku$_status_job_error) != 0) THEN
    LogEntry := Status.error;
    ELSE
    LogEntry := NULL;
    END IF;
    END IF;
    IF LogEntry IS NOT NULL THEN
    idx := LogEntry.FIRST;
    WHILE idx IS NOT NULL
    LOOP
    DBMS_OUTPUT.PUT_LINE(LogEntry(idx).LogText);
    idx := LogEntry.NEXT(idx);
    END LOOP;
    END IF;
    END LOOP;
    -- Successful DataPump Export job completion, so detach from the job
    DBMS_OUTPUT.PUT_LINE('Job has succesfully completed');
    DBMS_OUTPUT.PUT_LINE('Final job state = ' || JobState);
    DBMS_DATAPUMP.DETACH(JobHandle);
    EXCEPTION
    DBMS_OUTPUT.PUT_LINE('ERREUR :'||SQLERRM);
    END;

  • Reg: Export and Import using Dbms_datapump

    Hi,
    I would like to export a table using dbms_datapump package. I have a procedure to do this (In Oracle 10g R10.2.0.1.0). This procedure have parameter for schema name and table name and this particular schema table should be exported as
    dump file.
    PROCEDURE PR_EXPORT(PV_SCHEMA IN VARCHAR2,
    PV_TABLE VARCHAR2,
    PV_STATUS OUT VARCHAR2) AS
    l_dp_handle NUMBER;
    l_last_job_state VARCHAR2(30) := 'UNDEFINED';
    l_job_state VARCHAR2(30) := 'UNDEFINED';
    l_sts KU$_STATUS;
    l_schema varchar2(256);
    l_table varchar2(256);
    BEGIN
    l_schema := 'IN(''' || PV_SCHEMA || ''')'; --'IN(''VALIDATION'')'
    l_table := 'IN(''' || pv_table || ''')'; -- 'IN(''TABLE1'')'
    DBMS_OUTPUT .PUT_LINE('SCHEMA ' || L_SCHEMA);
    DBMS_OUTPUT .PUT_LINE('TABLE ' || L_TABLE);
    l_dp_handle := DBMS_DATAPUMP.open(operation => 'EXPORT',
    job_mode => 'TABLE',
    remote_link => NULL,
    job_name => 'EMP_EXPORT13',
    version => 'LATEST');
    DBMS_DATAPUMP .add_file(handle => l_dp_handle,
    filename => 'SCOTT12.dmp',
    directory => 'BACKUP_DIR');
    DBMS_DATAPUMP .add_file(handle => l_dp_handle,
    filename => 'SCOTT12.log',
    directory => 'BACKUP_DIR',
    filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    DBMS_DATAPUMP .metadata_filter(handle => l_dp_handle,
    name => 'SCHEMA_EXPR',
    VALUE => l_schema --'IN(''VALIDATION'')'
    DBMS_DATAPUMP .metadata_filter(handle => l_dp_handle,
    name => 'NAME_EXPR',
    VALUE => l_table -- 'IN(''TABLE1'')'
    DBMS_DATAPUMP .start_job(l_dp_handle);
    DBMS_DATAPUMP .detach(l_dp_handle);
    END PR_EXPORT;
    Sometime the above procedure correctly creating the dump file. But sometimes, it is showing the below error:
    The following error has occurred:
    ORA-26535: %ud byte row cache insufficient for table with rowsize=%ud
    Please help me on this.
    Thanks and Regards,
    Vijay

    The only information I could find so far is this [http://ora-26535.ora-code.com/].
    I could not find out how to change the buffer size - there does not seem to be an option in [DBMS_DATAPUMP|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_datpmp.htm#i1007277]. Maybe you have to search the [Advanced Replication documentation|http://download.oracle.com/docs/cd/B19306_01/server.102/b14226/toc.htm].
    HTH

  • Problem with DBMS_DATAPUMP package ,need help urgently!!

    Hi everyone
    I'm trying to export data with PL/SQL DBMS_DATAPUMP package.
    But I can't export data properly so far.
    If anybody know slutions these case and errors what I explained,
    pls help me.
    1. when I use ADD_FILE Procedure, and set parameter of file type as logfile
    then execute ORA-26535 error code returned as error.
    but if I didn't set on filetype that error didn't returned.
    2. when I execute package what I made, I could make DMP file but
    strange named tables also made on Database which I use.
    I don'(t why these table made it.
    table name-----SYS_EXPORT_TABLE_01,SYS_EXPORT_TABLE_06
    I attach my command under the below,
    CREATE OR REPLACE PACKAGE BODY ETL.PACK_KHJ006_filemake IS
         PROCEDURE Filemakeprocess IS
              dir_name          VARCHAR2(50);
              dfile_name          VARCHAR2(50);
              dlog_name          VARCHAR2(50);
              file_handle          NUMBER;
         BEGIN
              dir_name     := 'PLSQL_DIR';
              dfile_name     := 'KHJT001_backup' || TO_CHAR
    (sysdate,'yyyymmdd') || '.dmp';
              dlog_name     := 'KHJT001_backup.log';
              --file_handle     := DBMS_DATAPUMP.attach
    ('KHJT001_BACKUP');'KHJT001_BACKUP'
              file_handle     := DBMS_DATAPUMP.OPEN
    ('EXPORT','TABLE',NULL,'backup');
              DBMS_OUTPUT.PUT_LINE(dfile_name);
              DBMS_DATAPUMP.ADD_FILE
    (file_handle,dfile_name,dir_name);
         -     DBMS_DATAPUMP.ADD_FILE
    (file_handle,dlog_name,dir_name,DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
              DBMS_DATAPUMP.METADATA_FILTER(file_handle,'INCLUDE_NAME_EXPR','= ''ETL.KHJW001_changep");
              DBMS_DATAPUMP.SET_PARALLEL(file_handle,2);
              DBMS_DATAPUMP.START_JOB(file_handle);
         END;
    END;
    Thank you for your help

    What version of the database are you running? It seems to be working as expected for me (9.2.0.3).
      1  declare
      2    jobno binary_integer;
      3  begin
      4    dbms_job.submit( jobno, 'foo_proc();', sysdate, 'sysdate + (1/24)' );
      5    commit;
      6* end;
    scott@jcave > /
    scott@jcave > column last_date format a20;
    scott@jcave > column next_date format a20;
    scott@jcave > select job, to_char(last_date,'dd-MON-yy hh:mi:ss') Last_Date, to_char(next_date,'dd-M
    ON-yy hh:mi:ss') Next_Date from user_jobs;
           JOB LAST_DATE            NEXT_DATE
             1 25-NOV-03 05:06:39   25-NOV-03 06:06:39
    Elapsed: 00:00:00.00As an aside, are you really rebuilding your indexes every hour? On most systems, index rebuilds are completely unnecessary. On those systems where they are necessary, I can't imagine that it would be useful more than monthly.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • How to include user_sequences in a dbms_datapump procedure

    how to include user_sequences in a dbms_datapump procedure
    hi,
    i have a procedure to move all tables from MYSCHEMA_1 to MYSCHEMA_2 over a db_link
    using dbms_datapump ;
    That works fine
    but i need to copy the user_ sequences too.
    a detail if my procedure looks like this :
    ## create Job in TABLE-Mode :
    job_handle := dbms_datapump.open (
         operation      => 'IMPORT'
    ,job_mode => 'TABLE'
    ,remote_link           => p_database_link
    ,job_name      => vjob_name
    ## exclude same Tables:     
    dbms_datapump.metadata_filter (
         handle          =>     job_handle,
         name          =>     'NAME_EXPR',
         value          =>     'NOT IN (''TABLE_EXC_1'', ''TABLE_EXC_2'' , ''TABLE_EXC_3'' )'
    I found this to work with plain EXPDB :
    EXPDB INCLUDE=SEQUENCE: in ('SEQ','SEQ2') INCLUDE=TABLE: in ('TABLE','TABLE2')
    How to include user_sequences when working with dbms_datapump - API,
    maybe working with dbms_datapump.metadata_filter ?

    HI,
    you are right,
    to include SEQUENCES and other Objects like VIEW or FUNCTION
    does only work in SCHEMA-Mode
    But the next problem is
    when want to refresh the dump
    I can refresh the tables only
    dbms_datapump.set_parameter(
    handle      => job_handle,
    name      => 'TABLE_EXISTS_ACTION',
    value      => 'REPLACE'
    not the other objects like SEQUENCE or FUNCTION
    found in OracleSupport Note 1323411.1
    would nice to have a parameter OBJECT_EXISTS_ACTION in future

  • Passing the column name on Where condition based on input parameter

    Hi,
    I am using Oracle10g. Following are my table schema.
    Table Name : Codes
    Columns( ID, Level0, Level1,Level2)
    View Name : SampleView
    I have a scenario : A parameter will be passed to my view from C# application. I need to cut the last 4 places of the parameter and need to check 4 conditions as follows :
    1. IF last 4 places of parameter contains the value as "AMPD" then pass level0 column on where condition.
    Sample code : A123XPAMPD
    Expeted Result: Select * from Codes where Level0 ='A123XPAMPD'
    2. IF last 4 places of parameter contains the value as "Alpha numeric" then pass level1 column on where condition.
    Sample code : A123XPAA00
    Expeted Result: Select * from Codes where Level1 ='A123XPAA00'
    3. IF last 4 places of parameter contains the value as 0000 then pass level1 column on where condition.
    Sample code : A123XP0000
    Expeted Result: Select * from Codes where Level1 ='A123XP0000'
    4. IF last 4 places of parameter contains the value as (cannot be all 0's) and cannot contain "Alphabets" then pass level2 column on where condition.
    Sample code : A123XP1001
    Expeted Result: Select * from Codes where Level2 ='A123XP1001'
    Could any one please help me on writing this logic inside the view.
    Thanks in advance.

    Do you want to make sure that at least one alphabet and one number is there?
    select case
         when regexp_like('1111','^[a-zA-Z]+$') -"This says - Only alphabets, not even space
              THEN 'Alphabets'
         when regexp_like('1111','^[a-zA-Z0-9]*$') --"This says - Only alpha-numeric, not even space
          and regexp_like('1111','[a-zA-Z]') --"To make sure atleast one alphabet is there
          and regexp_like('1111','[0-9]') --"To make sure atleast one number is there
              THEN 'AlphaNumeric'
           else 'NULL' --"This is a string. Not actual NULL
          end
    from dual;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Adobe Camera Raw 8.4 RC "Update not applicable"

    I just tried to install Camera Raw 8.4 RC and got the message that the update is not applicable. I have PS CC and LR installed via CC. Adobe Twitter Support redirected me here. Has anyone an idea of what to do? Is there any log of the update process?

  • Tax Condition type

    Hi we have MWST condition type which we are using in pricing procedures to get VAT added. But what is the use of condition types in pricing procedures.JINFAC- JEXP, JEAP.... To my knowledge JINFAC - is used in excise invoice creation Can any one clea

  • What package do I need to install quicktime?

    I am able to download quicktime, but I CAN NOT  install it, the message says " the installation package could not be opened". What do I need to do to install quicktime?

  • Port forward stopped working after update

    i updated my software and the port forward stopped working and it will no longer allow access to my ip camera.

  • Iphone in recovered mode, why?

    why suddenly my iphone 4 in recovered mode, i am updating just now and suddenly goes like tis now even cant on my phone and inform thtat need restore all phone. wth