Setting dpdump location during Oracle 11g DB creation with DBCA....

I'm hoping someone can point me to an init parameter or environment variable I can set to change the default location of the Data Pump DATA_PUMP_DIR directory.
I'm running Solaris 10 and KSH so I tried setting it as an environment... no luck.
export ORACLE_SID=DXA1
export ORACLE_BASE=/oracle/$ORACLE_SID
export ORACLE_HOME=$ORACLE_BASE/112_64
export DATA_PUMP_DIR=/oracle/DXA1/oratrace/dpdump
dbca -silent -createDatabase -gdbName $ORACLE_SID -templateName /group/oracle/install/11201_General_Purpose.dbc -sysPassword test1234 -systemPassword test1234
Copying database files
1% complete
Creating and starting Oracle instance
40% complete
62% complete
Completing Database Creation
66% complete
100% complete
Look at the log file "/oracle/DXA1/cfgtoollogs/dbca/DXA1/DXA1.log" for further details.
SQL> select * from dba_directories where directory_name = 'DATA_PUMP_DIR';
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS DATA_PUMP_DIR /oracle/DXA1/admin/DXA1/dpdump/
I'd prefer to set this up front so I don't have to re-configure it for each new database installation. It's not a big deal... I just want it where I want it :-)
Thanks in advance!
Regards,
Rich

Modify your template and add the following:
--- etc ---
   <Variables/>
   <CustomScripts Execute="true">
      <CustomScript script="/oracle/scripts/chg_dpdump_dir.sh"/>
   </CustomScripts>
   <InitParamAttributes>
--- etc ---Where "chg_dpdump_dir.sh" is your script to change the location of datapump dir:
#!/usr/bin/ksh
# +-------------------------------------------------
# +
# + chg_dpdump_dir.sh
# +
# + Change the Oracle datapump directory
# +
# +-------------------------------------------------
export ORACLE_SID=DXA1
export ORACLE_BASE=/oracle/$ORACLE_SID
export ORACLE_HOME=$ORACLE_BASE/112_64
export DATA_PUMP_DIR=/oracle/DXA1/oratrace/dpdump
export SYSPWD='ThePasswordYouWillEnterInDbca'
sqlplus -s /nolog <<EOF
connect sys/$SYSPWD as sysdba
Create Or Replace Directory Data_Pump_Dir As '$DATA_PUMP_DIR';
exit
EOF:p

Similar Messages

  • Oracle 11g decode issue with null

    Hi,
    we want to migrate from Oracle 10g to Oracle 11g and have an issue with decode.
    The database has the following character set settings:
    NLS_CHARACTERSET = AL32UTF8 in Oracle 11g and UTF8 in Oracle 10g
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    If I try a select with decode which has null as first result argument I will get a wrong value.
    select decode(id, null, null, name) from tab1;
    ("name" is a NVARCHAR2 field. Table tab1 has only one entry and "id" is not null.)
    This select returns a value with characters which are splitted by 0 bytes.
    In Oracle 10g the value without 0 bytes is delivered.
    If I suround the decode with dump I get following results:
    select dump(decode(id, null, null, name), 1016) from tab1;
    Oracle 10g: Typ=1 Len=6 CharacterSet=AL32UTF8: 4d,61,72,74,69,6e
    Oracle 11g: Typ=1 Len=12 CharacterSet=US7ASCII: 0,4d,0,61,0,72,0,74,0,69,0,6e
    NLS_LANG has no effect on the character set of 'null' in Oracle 11g.
    Non null literals work:
    select dump(decode(id, null, 'T', name), 1016) from tab1;
    Oracle 10g: Typ=1 Len=6 CharacterSet=UTF8: 4d,61,72,74,69,6e
    Oracle 11g: Typ=1 Len=6 CharacterSet=AL32UTF8: 4d,61,72,74,69,6e
    select dump(decode(id, null, N'T', name), 1016) from tab1;
    Oracle 10g: Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e
    Oracle 11g: Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e
    Here the scripts for creating the table and the entry:
    create table tab1 (
    id NUMBER(3),
    name NVARCHAR2(10)
    insert into tab1 (id, name) values (1, N'Martin');
    commit;
    Is it possible to change the character set?
    Could you please help me?
    Regards
    Martin

    This doesn't have the problem.looks this doesn't solve the problem (of returning a value with characters which are splitted by 0 bytes):
    SQL> select * from v$version where rownum = 1
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production         
    1 row selected.
    SQL> select dump(decode(id, null, null, name), 1016) from tab1
    union all
    select dump(case id when null then null else name end, 1016) cs from tab1
    DUMP(DECODE(ID,NULL,NULL,NAME),1016)                                           
    Typ=1 Len=12 CharacterSet=US7ASCII: 0,4d,0,61,0,72,0,74,0,69,0,6e              
    Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e             
    2 rows selected.You need to explicitly convert the third parameter to char:
    SQL> select dump(decode(id, null, to_char(null), name), 1016) from tab1
    DUMP(DECODE(ID,NULL,TO_CHAR(NULL),NAME),1016)                                  
    Typ=1 Len=6 CharacterSet=WE8MSWIN1252: 4d,61,72,74,69,6e                       
    1 row selected.

  • Assistance needed during Oracle 11G R2 client installations in Windows 2008

    Hi,
    I am installing Oracle 11G R2 client in Windows 2008 R2 enterprise server. It has JR6 installed. But whenever I am launching the installer from OUI, I am getting the error 'Java: “Could not find the main class. Program will exit” and the installation is getting terminated. Any inputs/suggestions will be great for me.
    Thanks in advance.

    Hi,
    are you able to run java manually? I.e. java --help in the cmd? Are your environment variables (JAVA_HOME) set properly?                                                                                                                                                                                                                                                               

  • +ASM spfile default location of  Oracle 11g RAC Linux

    Is anybody now the default location of +ASM spfile at Oracle 11g RAC Linux.                                                                                                                                                                                       

    ITs there if you dont have the Database installed yet ! +DATA/asm/asmparameterfile/registry.253.725983597                                                                                                                                                                                                                       

  • Oracle 11g database installation with 6GB SGA and 1GB PGA on x86 dell machn

    I am trying to install oracle 11g on a DEL 2650 PowerEdge machine and want to set set SGA 6GB. I have set the shmmax kernel parameter 6449050944. Whenever i set the SGA size to 6 GB it display an error.
    Can anybody guide me where i am wrong ?

    O/s is Linux AS4 and total memory is 8 GB.
    I just purchased this old refurbished dell poweredge 2650 for testing purpose.
    Want to utilize the maximum memory available for the database.
    swap is 8 GB too.

  • Can I use Oracle 11g Developer tools with 10G and XE

    Hi, I want to use Oracle 11g ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio with 10g and Xe . Will there be any issues. I want to do so because I am not able to see Oracle Database project in Visual Studio when I install Oracle 10 g developer tools wherein I see that in Oracle 11g developer tools. Please suggest.

    No there are no issues. Just be sure to install ODT in a separate location than where XE is installed.

  • Migrating from Red Brick database to Oracle 11g -Need help with the process

    Hi,
    I am on this new project were we are migrating from IBM Red Brick Data Warehouse to Oracle 11g. We have a very tight time line. I was hoping if any of you have done this migration before and are willing to share their experience. Any help would be greatly appreciated. I would like to get a brief idea about how to go about the process.
    Thanks in advance!

    Hello,
    that is a matter of supply and demand, and as the demand to migrate Red Brick to Oracle RDBMS is very low, Oracle never included Red Brick into the migration tools.
    If you search in the forums for Red Brick, you will not find much more than this one from the year 2006:
    Re: Migration from rebrick 6.0.3 to Oracle 9i
    Options:
    In general we have the following options:
    1. Oracle Migration Workbench
    2. SQL Developer Migration Workbench
    3. Generic Connectivity
    4. SQL*Loader
    Regarding your dedicated foreign database, option 1 and 2 fail as those tools
    do not work against Red Brick DB.
    Generic Connectivity would be an option if you have an ODBC driver to this database.
    In this dedicated case, you can then set up generic connectivity (= a database
    link to the foreign database using odbc).
    The Oracle database we support generic connectivity can reside on Windows,
    Solaris, HP-UX, AIX and Linux.
    If the Oracle database is on any other platform, you might migrate to a
    database on this platform, then export the migrated DB and then load it into
    the real target db.
    Generic Connectivity will allow you to perform a SQL*Plus copy of tables; this
    means you can create tables like they are defined in your source and transfer
    the data to the Oracle db; but no procedures, triggers or anything coded can be
    transferred.
    Last option (4) is that you generate "flat files". This means ASCII-SPOOL
    Files and then import them using SQL*Loader. As far as I know there is no
    existing SQL*Loader sample file for Red Brick databases exports and you need to
    write them on your own.
    I recommend to read also the following note in My Oracle Support:
    Note 233876.1: Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    Best regards
    Wolfgang

  • Oracle 11g: ORA-12547 by DBCA

    Hi all,
    I am trying to create an Oracle 11g R2 Standalone Database with ASM
    on Enterprise Linux 5.5 (64-bit).
    I successfully installed the Grid Infrastructure and the DB software.
    When I reached to creating db phase and the dbca started creating the db,
    it retuned the following errors:
    The note calimed the problem is in the privilege of
    Here is the privilege of the folder in my system:
    PRCR-1079: Failed to start resource ora.oradb.db
    ORA-12547: TNS lost contact
    CRS-2674: start ora.oradb.db on 'srv07' failed
    How can I resolve the issue?
    Thanks in advance.

    Hi Mano,
    Following is the output of what I have done (based on your suggestion):
    ls -ltr $ORACLE_HOME/bin/oracle
    -r-xr-sr-x 1 oracle asmadmin 210824714 Oct  7 22:27 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    [root@srv07 ~]# chmod 6751 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    [root@srv07 ~]# ls -l /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    -rwsr-s--x 1 oracle asmadmin 210824714 Oct  7 22:27 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    [oracle@srv07 bin]$ /u01/app/oracle/product/11.2.0/db_1/bin/srvctl start database -d oradb
    PRCR-1079 : Failed to start resource ora.oradb.db
    ORA-01031: insufficient privileges
    ORA-01031: insufficient privileges
    CRS-2674: Start of 'ora.oradb.db' on 'srv07' failedInfrastructure was installed as "grid"
    Oracle DB was installed as "oracle"
    [oracle@srv07 ~]$ id oracle
    uid=502(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),506(asmdba)
    [oracle@srv07 ~]$ id grid
    uid=501(grid) gid=501(oinstall) groups=501(oinstall),504(asmadmin),506(asmdba),507(asmoper)

  • Oracle 11g Express Edition with Default Apex 4

    Hi,
    I recently installed Oracle 11g Express Edition, It came by default with apex 4 installed in it, I did not install apex in my system since it already had apex 4 in build.
    Next I created a schema and tried to import some of the application developed in apex 4, But i am getting this below error.
    >>1 error has occurredNOT COMPATIBLE (Your export may contain calls not supported by your application version.)
    Kindly please suggest me do i need to install apex again in the system or what is the alternative method to make application install.
    Thanks
    Sudhir

    Download the latest APEX version and upgrade.
    Regards
    Nico

  • Unablto to DB creation with DBCA

    Hi,
    My details
    Os: windows 7 professional, 32-bit
    Oracle:10.2.0.1.
    I was installed and created 1 database with installation and that is fine and running. I would like to create 1 more database cat with dbca, but @the end of final step its throwing error like
    can't create directory"E:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\cat".
    Pls help me out to create db
    regards
    Poorna
    Edited by: 873393 on Aug 21, 2011 2:29 PM
    Edited by: 873393 on Aug 22, 2011 9:21 AM

    pls findand i've given Full controle permissions to the folder.
    E:\oracle\product\10.2.0\db_1\assistants\dbca\logs>dir
    Volume in drive E has no label.
    Volume Serial Number is 2E26-8FE0
    Directory of E:\oracle\product\10.2.0\db_1\assistants\dbca\logs
    08/21/2011 11:40 AM <DIR> .
    08/21/2011 11:40 AM <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 58,135,355,392 bytes free
    E:\oracle\product\10.2.0\db_1\assistants\dbca\logs>dir
    Volume in drive E has no label.
    Volume Serial Number is 2E26-8FE0
    Directory of E:\oracle\product\10.2.0\db_1\assistants\dbca\logs
    08/21/2011 11:40 AM <DIR> .
    08/21/2011 11:40 AM <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 58,135,355,392 bytes free
    E:\oracle\product\10.2.0\db_1\assistants\dbca\logs>
    pls suggest me, thank you for your support.

  • Error in setting datasource location from oracle to sql server

    Post Author: jonathanaramburo
    CA Forum: Data Integration
    Hello,
    I have an application that uses a table named "events" which conflicts the sys.events view in master database in sql server. The error i was encountering is that, whenever i tried to set the datasource location of my crystal report from its previous connection oracle to sql server, i get an error saying that some of the fields has not been updated because theres no matching fields to the current connection. It seems that crystal is pointing on sys.events view on master db and not on the events table in myDb database. How can I tell crystal reports to not pick up sys.events and get only myDB.events table.
    Thank you in advance,
    Thanks,
    Jonathan

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • Set events parameter in oracle 11g for SAP

    Hi All,
    Recently we have upgraded 10.2.0.4 oracle database to 11.2.0.3 (AIX 7.1) for SAP application.
    Some non-default event parameters were set when Database was running with 10.2.0.4 version. After upgrade to 11.2.0.3, those events were not seen in pfile/spfile. However, post_upgrade log shows that those events were set (and log displays the list of the events as well).
    Now, my concern is whether those event parameters were set already by default (if it is already set after upgrade, not sure why pfile not reflecting them) or do I need to set the parameters manually.
    Thanks in advance for all your help.
    Regards,
    Prakash

    Yes, they seem to be part of the upgrade itself, and SAP seems to set them in multiple places:
    1) During the dbua.sap.sh run, post-processing calls custom scripts which set these events (check the CustomScript.log in $ORACLE_BASE/cfgtoollogs/dbua/SID/upgrade1 and you can see where it is set)
    2) The post_upgrade_status.sql script in $ORACLE_HOME/sap/ora_upgrade/post_upgrade sets them when you run it as directed after the upgrade
    3) The SBP post-patch instructions specify a command to run that sets these in the spfile
    I don't think any of the upgrade steps regenerate the pfile, so if you're looking at one you generated pre-upgrade (like I did earlier today to pull out underscore parameters and user/background_dump_dest) that you then used to startup the database, SAP is definitely changing stuff behind your back. I'd just regenerate the pfile to avoid confusion.

  • Location of Oracle 11g R1 kits?

    Hi
    My team needs to do some testing with Oracle Database 11g R1 (we can't go to R2 just yet).  I can't seem to find the kits.  Where should I be looking?
    Thanks
    tl

    user4106676 wrote:
    sorry for the newbie question, but what is MOS?
    unwilling or incapable to use GOOGLE yourself
    first page showed URL below
    Service Requests
    NOTE the TITLE in upper left corner of document

  • Setting Transaction property in Oracle 11g

    Hi All,
    I am trying to learn the use of transaction property. I couldnt get the exact scenario by doing which i could get the need for that transaction property.
    I have two tables in my DB.
    Table1:_
    Name,Location,Experience
    Table2_
    EmpID,CurrentDomain,CurrentSalary
    Two bpels_
    Bpel1 -> used to insert into Table1
    Bpel2 -> To insert into Table2
    If any one fails, then the other shd rollback.For this only , i would like to make use of that transaction property.
    This is my requirement.
    Bpel1:_
    Gets the input from the client. which includes Name,Location,Experience,EmpID,CurrentDomain,CurrentSalary (ie., all the columns in table1 and table2)
    I have an idea to invoke Bpel2 from Bpel1.
    pls guide how shd i design the two bpels such tat i can see the importance of transaction property, so tat if insertion either in bpel1 or bpel2 fails then the other insertion shd also rollback..
    I need this only by using transaction property and by some fault management. For now, i dont want to use compensate activity.
    Please guide me in solving..
    Thanks,
    Sabarisri. N

    Hi,
    Please find below the query result:
    Pga_targt_est pga_tar_factor Bytes_processed estd_time estd_extra_bytes pga_cache_hit_% estd_overall_count
    163577856 0.125 18310.0869 41191045 5285025792 78 273
    327155712 0.25 18310.0869 40389473 4808559616 80 229
    654311424 0.5 18310.0869 32516073 128498688 99 0
    981467136 0.75 18310.0869 32516073 128498688 99 0
    *1308622848 1 18310.0869 32516073 128498688 99 0*1570347008 1.2 18310.0869 32516073 128498688 99 0
    1832071168 1.4 18310.0869 32516073 128498688 99 0
    2093796352 1.6 18310.0869 32516073 128498688 99 0
    2355520512 1.8 18310.0869 32516073 128498688 99 0
    2617245696 2 18310.0869 32516073 128498688 99 0
    3925868544 3 18310.0869 32516073 128498688 99 0
    523449132 4 18310.0869 32516073 128498688 99 0
    7851737088 6 18310.0869 32516073 128498688 99 0
    1.05E+10 8 18310.0869 32516073 128498688 99 0
    Thanks,
    Edited by: user12133150 on Feb 8, 2011 12:08 PM
    Edited by: user12133150 on Feb 8, 2011 12:13 PM
    Edited by: user12133150 on Feb 8, 2011 12:26 PM

  • 'make /link ' errors during Oracle 11G install on Oracle Linux 5

    tail /u01/app/oraInventory/logs/installActions2007-10-12_11-30-12AM.log
    INFO: genclntsh: Failed to link libclntsh.so.11.1
    INFO: make: *** [client_sharedlib] Error 1
    INFO: End output from spawned process.
    INFO: ----------------------------------
    INFO: Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/product/11.1.0/oradb1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2007-10-12_11-30-12AM.log' for details.
    Exception Severity: 1
    Any helpful hint would be highly appreciated...Ramesh

    Hi, Ramesh
    Please refer to
    Error in invoking target 'client_sharedlib' of makefile
    Could you have the same condition ?
    Regards
    Jason

Maybe you are looking for

  • Setting Total Area Coverage (TAC or Density) in InDesign

    Is there a way to set the Total Area Coverage (TAC or Density) in the Export options from InDesign? I feel that the color management tools relate to elements created within InDesign and not placed images. My printer requires a PDF/X-1a:2001 compliant

  • Problem with back button in jsp

    hi all, i am submitting some text field values and select option to a do_registration.jsp page. till now everything is ok. code in do_registration if (rowCount > 0) //means user already exists out.print("user already exists"); out.print("<A HREF='#'

  • Java Caps 5.1.3. and SFTP (FTP over SSH)

    Hi, I'm trying to use the BatchSFTP option from the batch eway to setup FTP over SSH. I'm having trouble in setting up the keyfile. I've generated a trusted_hosts file using openSSH via CYGWIN (I'm running on W2003 server). The error I get is: Batch

  • Can mac book air run final cut

    thinking of purchasing 13 inch Macbook air.  Will it run finalcut ?

  • Rename the Catalog Link

    Hi, I want to rename the Catalog link on the header bar but i can't seem to find any documents on steps to do it. Have come accross docs on renaming the other links 'Home', 'Dashboard' etc in http://obiee10grevisited.blogspot.co.uk/2012/02/obiee-11g-