Is it export ORACLE_SID=+ASM or export ORACLE_SID=+asm

While starting up a database in ASM should i use
$ export ORACLE_SID=+ASM --(ASM in upper case)
or
$ export ORACLE_SID=+asm -- (ASM in lower case)

It should be ASM and if you are using RAC then it should be ASM1 or +ASM2                                                                                                                                                                                       

Similar Messages

  • Export ORACLE_SID not working correctly

    I have an 11g database on red hat linux and when I initially log into the machine as the Oracle user and do and export ORACLE_SID when I do a sqlplus / as sysdba it doesnt pick up the the database I specified(in this situation lumtest). If I do an . oraenv though it picks up the correct database. I cant seem to see what is missing as I have provided a dump of the user environment before and after I do the . oraenv.
    I thought . oraenv set the base home and path so I'm not sure what else I should look for.
    [oracle@adorcl ~]$ env|grep -i oracle
    USER=oracle
    LD_LIBRARY_PATH=/opt/oracle/product/11.2.0/dbhome_1/lib
    ORACLE_SID=lumtest
    ORACLE_BASE=/opt/oracle/
    MAIL=/var/spool/mail/oracle
    PATH=/opt/oracle/product/11.2.0/dbhome_1//bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1/
    [oracle@adorcl ~]$ . oraenv
    ORACLE_SID = [lumtest] ?
    The Oracle base for ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1 is /opt/oracle/
    [oracle@adorcl ~]$ env|grep -i oracle
    USER=oracle
    LD_LIBRARY_PATH=/opt/oracle/product/11.2.0/dbhome_1/lib
    ORACLE_SID=lumtest
    ORACLE_BASE=/opt/oracle/
    MAIL=/var/spool/mail/oracle
    PATH=/opt/oracle/product/11.2.0/dbhome_1/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1

    929779 wrote:
    I have an 11g database on red hat linux and when I initially log into the machine as the Oracle user and do and export ORACLE_SID when I do a sqlplus / as sysdba it doesnt pick up the the database I specified(in this situation lumtest). If I do an . oraenv though it picks up the correct database. I cant seem to see what is missing as I have provided a dump of the user environment before and after I do the . oraenv.
    I thought . oraenv set the base home and path so I'm not sure what else I should look for.
    [oracle@adorcl ~]$ env|grep -i oracle
    USER=oracle
    LD_LIBRARY_PATH=/opt/oracle/product/11.2.0/dbhome_1/lib
    ORACLE_SID=lumtest
    ORACLE_BASE=/opt/oracle/
    MAIL=/var/spool/mail/oracle
    PATH=/opt/oracle/product/11.2.0/dbhome_1//bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1/
    [oracle@adorcl ~]$ . oraenv
    ORACLE_SID = [lumtest] ?
    The Oracle base for ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1 is /opt/oracle/
    [oracle@adorcl ~]$ env|grep -i oracle
    USER=oracle
    LD_LIBRARY_PATH=/opt/oracle/product/11.2.0/dbhome_1/lib
    ORACLE_SID=lumtest
    ORACLE_BASE=/opt/oracle/
    MAIL=/var/spool/mail/oracle
    PATH=/opt/oracle/product/11.2.0/dbhome_1/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1
    look at the value of ORACLE_HOME before and after you execute oraenv.   ORACLE_HOME should not end with a slash.
    ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1/
    ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1

  • Is it necessary that before import and export we set ORACLE_SID?

    Is it necessary that before import and export we set ORACLE_SID?

    if you set the variable you can do it so :
    ORACLE_SID=db1
    export ORACLE_SID
    exp joel/perez file=.............
    if you do not set the variable you can do it so :
    exp joel/perez@service_name file=.............
    Joel P�rez

  • ORACLE_SID and ASM

    Oracle Database Administrator's Reference
    10g Release 2 (10.2) for UNIX-Based Operating Systems
    Part Number B15658-05
    ORACLE_SID
    Function
    Specifies the Oracle system identifier.
    Syntax
    A string of numbers and letters that must begin with a letter. Oracle recommends a
    maximum of 8 characters for system identifiers. For more information about this
    environment variable, refer to Oracle Database Installation Guide.
    Example
    SAL1
    It should be mentioned that the ORACLE_SID can start with a plus when using automatic storage management
    Example
    +ASM1
    Note that in the installation guide (ex: Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86-64 Part Number B15667-01), there is an example of a SID of 12 characters with a plus (+) in the middle
    $ ORACLE_SID=OraDB10g+ASM
    $ export ORACLE_SID
    When the guide above recommends to have no more than 8 characters.
    Kind regards
    Laurent
    Message was edited by:
    Laurent Schneider
    PS: I have thousands of databases and I want to give some rules. For example, I do not like underscores in SIDs. I think the 8 characters limitation is also good

    hello everyone,
    Can u provide me the info about this news.............my problem is that i have completed my 3 pappers of ocp 9i the 4th one PT is remaining .If this is expierd wht will happend with me and my cleared pappers................plz reply
    i m waiting very much of reply.............tahnx in advance

  • ASM for export

    I could create exp dump on an asm disk.
    1. How do I transfer the files to and from ASM to file system and vise versa?
    2. How to compress the dumpfile using gzip or any other way?
    Thanks.

    Ok, Found the following from the Utilities doc:
    Using Directory Objects When Automatic Storage Management Is Enabled
    If you use Data Pump Export or Import with Automatic Storage Management (ASM) enabled, you must define the directory object used for the dump file so that the ASM disk-group name is used (instead of an operating system directory path). A separate directory object, which points to an operating system directory path, should be used for the log file. For example, you would create a directory object for the ASM dump file as follows:
    SQL> CREATE or REPLACE DIRECTORY dpump_dir as '+DATAFILES/';
    Then you would create a separate directory object for the log file:
    SQL> CREATE or REPLACE DIRECTORY dpump_log as '/homedir/user1/';
    To enable user hr to have access to these directory objects, you would assign the necessary privileges, for example:
    SQL> GRANT READ, WRITE ON DIRECTORY dpump_dir TO hr;
    SQL> GRANT READ, WRITE ON DIRECTORY dpump_log TO hr;
    You would then use the following Data Pump Export command:
    expdp hr/hr DIRECTORY=dpump_dir DUMPFILE=hr.dmp LOGFILE=dpump_log:hr.log

  • I got error when I export database ORACLE 9i from solaris 9.

    I want to export full database ORACLE 9i from SOLARIS 9 to import full database on ORACLE 9i on windows.
    I set oracle environment and NSL_LANG with command:
    bash-3.00$ export ORACLE_SID=TIS
    bash-3.00$ export NLS_LANG=AMERICAN_AMERICA.TH8TISASCII
    and then run command to export:
    bash-3.00$ exp system/manager@TIS full=y file= /u03/dmp/TISfull.dmp log=/u03/dmp/exp_TIS.log
    I got error message as:
    Export: Release 9.2.0.1.0 - Production on Thu Oct 8 17:57:32 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in TH8TISASCII character set and UTF8 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    . exporting system procedural objects and actions
    . exporting pre-schema procedural objects and actions
    EXP-00008: ORACLE error 25153 encountered
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_AW", line 42
    ORA-06512: at "SYS.DBMS_AW", line 105
    ORA-06512: at "SYS.DBMS_AW", line 221
    ORA-06512: at "SYS.DBMS_AW_EXP", line 264
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AW_EXP.schema_info_exp
    . exporting cluster definitions
    EXP-00056: ORACLE error 25153 encountered
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_LOB", line 424
    ORA-06512: at "SYS.DBMS_METADATA", line 1140
    ORA-06512: at line 1
    EXP-00056: ORACLE error 25153 encountered
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_LOB", line 424
    ORA-06512: at "SYS.DBMS_METADATA", line 1140
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    How can I solve this problem?
    Any suggestion?

    #### HOW to solve it.
    ## To check the default temporary tablespace of the database:
    SQL> select property_name, property_value from database_properties;
    ## check DEFAULT_TEMP_TABLESPACE, if it use wrong temporary tablespace, run:
    SQL> alter database default temporary tablespace temp;
    ## check user with temporary tablespace, run command:
    SQL> select username, temporary_tablespace, account_status from dba_users;
    ## change temporary tablespace:
    SQL> create temporary tablespace temp1 tempfile '/data/u01/app/oracle/oradata/TIS/temp_b.dbf' size 100m;
    SQL> alter database default temporary tablespace temp1;
    SQL> drop tablespace temp including contents and datafiles;
    SQL> create temporary tablespace temp tempfile '/data/u01/app/oracle/oradata/TIS/temp01.dbf' size 100m autoextend off extent management local uniform size 1m;
    SQL> alter database default temporary tablespace temp;
    SQL> drop tablespace temp1 including contents and datafiles;
    Thanks

  • Cannot export a dump file

    Dear all experts,
    I need your helps please. We have oracle enterprise 9i2 installed and oracle fail safe installed on the server. We run cluster.
    All of a sudden, i ran into a problem to create a dump file for backup.
    at the command prompt i type in:
    c:\exp
    c:\username
    c:\password
    After entered all the correct usename and password, it quickly responded with error messages as below
    EXP-00056: ORACLE error 12560 encountered
    ORA-12560: TNS:protocol adapter error
    EXP-00000: Export terminated unsuccessfully.
    Please note that i use the oracle client 9i2 on client machine.
    even i logon to the server where Oracle database server installed, but i got the same error message.
    Now we are so worry since we cannot backup database using exportint dump file.
    We are now at critical moment. Any helps are greatly appreciated.
    Thanks a million.

    even i logon to the server where Oracle database server installed, but i got the same error message.
    For server side:
    Did you set ORACLE_SID environment variable ?
    Are you sure Windows service OracleService<instance> is running ?
    Are you sure database instance is up and running ?
    Can you connect with SQL*Plus to database instance from server ?
    For client side:
    Did you set ORACLE_SID environment variable ?
    Are you sure listener is up and running on server ?
    What is the output of tnsping on the client ?
    Please note also:
    While useful, database exports are not a substitute for whole database backups. They cannot provide the same complete recovery advantages of physical-level backups. For example, you cannot apply archived logs to logical backups in order to update lost changes.

  • Problem with ORACLE_SID

    I am not able startup a database in nomount state for particular ORACLE_SID. It seems it doesn't like the ORACLE_SID I set to.
    It's throwing following error
    ORA-07345: The datafile name must not contain the string '..'.
    Steps I did like follows
    1) export ORACLE_SID=ABC
    2) I have init.ora, which has DB_NAME=ABC
    3) startup nomount pfile='/export/home/oracle/init.ora'
    It works great and puts db in nomount state
    But, when I change ORACLE_SID=XYZ and edited init.ora with
    DB_NAME=XYZ, then did
    startup nomount pfile=''/export/home/oracle/init.ora', then it throws following error
    ORA-07345: The datafile name must not contain the string '..'.

    Normally the init.ora file is init<$ORACLE_SID>.ora
    i.e. initABC.ora
    Are you sure that you are trying to start ABC with the correct initialization file?

  • Unable to call exported client methods of EJB session bean remote interface

    I am unable to call client methods of a BC4J application module deployed as a Session EJB to Oracle 8i at the client side of my multi-tier application. There is no documentation, and I am unable to understand how I should do it.
    A business components project has been created. For instance, its application module is called BestdataModule. A few custom methods have been added to BestdataModuleImpl.java file, for instance:
    public void doNothingNoArgs() {
    public void doNothingOneArg(String astr) {
    public void setCertificate(String userName, String userPassword) {
    theCertificate = new Certificate(userName, userPassword);
    public String getPermission() {
    if (theCertificate != null)
    {if (theCertificate.getPermission())
    {return("Yes");
    else return("No, expired");
    else return("No, absent");
    theCertificate being a protected class variable and Certificate being a class, etc.
    The application module has been tested in the local mode, made remotable to be deployed as EJB session bean, methods to appear at the client side have been selected. The application module has been successfully deployed to Oracle 8.1.7 and tested in the remote mode. A custom library containing BestdataModuleEJBClient.jar and BestDataCommonEJB.jar has been created.
    Then I try to create a client basing on Example Oracle8i/EJB Client snippet:
    package bestclients;
    import java.lang.*;
    import java.sql.*;
    import java.util.*;
    import javax.naming.*;
    import oracle.aurora.jndi.sess_iiop.*;
    import oracle.jbo.*;
    import oracle.jbo.client.remote.ejb.*;
    import oracle.jbo.common.remote.*;
    import oracle.jbo.common.remote.ejb.*;
    import oracle.jdeveloper.html.*;
    import bestdata.client.ejb.*;
    import bestdata.common.ejb.*;
    import bestdata.common.*;
    import bestdata.client.ejb.BestdataModuleEJBClient;
    public class BestClients extends Object {
    static Hashtable env = new Hashtable(10);
    public static void main(String[] args) {
    String ejbUrl = "sess_iiop://localhost:2481:ORCL/test/TESTER/ejb/bestdata.BestdataModule";
    String username = "TESTER";
    String password = "TESTER";
    Hashtable environment = new Hashtable();
    environment.put(javax.naming.Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    environment.put(Context.SECURITY_PRINCIPAL, username);
    environment.put(Context.SECURITY_CREDENTIALS, password);
    environment.put(Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
    BestdataModuleHome homeInterface = null;
    try {
    Context ic = new InitialContext(environment);
    homeInterface = (BestdataModuleHome)ic.lookup(ejbUrl);
    catch (ActivationException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    System.exit(1);
    catch (CommunicationException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    System.exit(1);
    catch (NamingException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    System.exit(1);
    try {
    System.out.println("Creating a new EJB instance");
    RemoteBestdataModule remoteInterface = homeInterface.create();
    // Method calls go here!
    // e.g.
    // System.out.println(remoteInterface.foo());
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    It doesnt cause any errors. However, how must I call methods? The public interface RemoteBestdataModule has no such methods:
    void doNothingNoArgs();
    void doNothingOneArg(java.lang.String astr);
    void setCertificate(java.lang.String userName, java.lang.String userPassword);
    java.lang.String getPermission();
    Instead of that it has the following methods:
    oracle.jbo.common.remote.PiggybackReturn doNothingNoArgs(byte[] _pb) throws oracle.jbo.common.remote.ejb.RemoteJboException, java.rmi.RemoteException;
    oracle.jbo.common.remote.PiggybackReturn doNothingOneArg(byte[] _pb, java.lang.String astr) throws oracle.jbo.common.remote.ejb.RemoteJboException, java.rmi.RemoteException;
    oracle.jbo.common.remote.PiggybackReturn customQueryExec(byte[] _pb, java.lang.String aQuery) throws oracle.jbo.common.remote.ejb.RemoteJboException, java.rmi.RemoteException;
    oracle.jbo.common.remote.PiggybackReturn setCertificate(byte[] _pb, java.lang.String userName, java.lang.String userPassword) throws oracle.jbo.common.remote.ejb.RemoteJboException, java.rmi.RemoteException;
    oracle.jbo.common.remote.PiggybackReturn getPermission(byte[] _pb) throws oracle.jbo.common.remote.ejb.RemoteJboException, java.rmi.RemoteException;
    I cannot call those methods. I can see how they are called in BestdataModuleEJBClient.java file:
    public void doNothingNoArgs() throws oracle.jbo.JboException {
    try {
    oracle.jbo.common.remote.PiggybackReturn _pbRet = mRemoteAM.doNothingNoArgs(getPiggyback());
    processPiggyback(_pbRet.mPiggyback);
    if (_pbRet.isReturnStreamValid()) {
    return;
    catch (oracle.jbo.common.remote.ejb.RemoteJboException ex) {
    processRemoteJboException(ex);
    catch (java.rmi.RemoteException ex) {
    processRemoteJboException(ex);
    throw new oracle.jbo.JboException("Marshall error");
    However, I cannot call getPiggyback() function! It is a protected method, it is available to the class BestdataModuleEJBClient which extends EJBApplicationModuleImpl, but it is unavailable to my class BestClients which extends Object and is intended to extend oracle.jdeveloper.html.WebBeanImpl!
    It seems to me that I mustnt use RemoteBestdataModule interface directly. Instead of that I must use the public class BestdataModuleEJBClient that extends EJBApplicationModuleImpl and implements BestdataModule interface. It contains all methods required without additional arguments (see just above). However, how must I create an object of BestdataModuleEJBClient class? That is a puzzle. Besides my custom methods the class has only two methods:
    protected bestdata.common.ejb.RemoteBestdataModule mRemoteAM;
    /*This is the default constructor (do not remove)*/
    public BestdataModuleEJBClient(RemoteApplicationModule remoteAM) {
    super(remoteAM);
    mRemoteAM = (bestdata.common.ejb.RemoteBestdataModule)remoteAM;
    public bestdata.common.ejb.RemoteBestdataModule getRemoteBestdataModule() {
    return mRemoteAM;
    It looks like the remote application module must already exist! In despair I tried to put down something of the kind at the client side:
    RemoteBestdataModule remoteInterface = homeInterface.create();
    BestdataModuleEJBClient dm = new BestdataModuleEJBClient(remoteInterface);
    dm.doNothingNoArgs();
    Of course, it results in an error.
    System Output: null
    System Error: java.lang.NullPointerException
    System Error: oracle.jbo.common.PiggybackOutput oracle.jbo.client.remote.ApplicationModuleImpl.getPiggyForRemovedObjects(oracle.jbo.common.PiggybackOutput) (ApplicationModuleImpl.java:3017)
    System Error: byte[] oracle.jbo.client.remote.ApplicationModuleImpl.getPiggyfront(boolea
    System Error: n) (ApplicationModuleImpl.java:3059)
    System Error: byte[] oracle.jbo.client.remote.ApplicationModuleImpl.getPiggyback() (ApplicationModuleImpl.java:3195)
    System Error: void bestdata.client.ejb.BestdataModuleEJBClient.doNothingNoArgs() (BestdataModuleEJBClient.java:33)
    System Error: void bes
    System Error: tclients.BestClients.main(java.lang.String[]) (BestClients.java:76)
    I have studied a lot of documents in vain. I have found only various senseless discourses:
    "Use the Application Module Wizard to make the Application Module remotable and export the method. This will generate an interface for HrAppmodule (HrAppmodule.java in the Common package) which contains the signature for the exported method promoteAllEmps(). Then, deploy the Application Module. Once the Application Module has been deployed, you can use the promoteAllEmps() method in your client-side programs. Calls to the promoteAllEmps() method in client-side programs will result in calls to the promote() method in the application tier."
    However, I have failed to find a single line of code explaining how it should be called.
    Can anybody help me?
    Best regards,
    Svyatoslav Konovaltsev,
    [email protected]
    null

    Dear Steven,
    1. Thank you very much. It seems to me that the problem is solved.
    2. "I logged into Metalink but it wants me to put in both a tar number and a country name to see your issue." It was the United Kingdom, neither the US nor Russia if you mean my issue.
    I reproduce the text to be written by everyone who encounters the same problem:
    package bestclients;
    import java.util.Hashtable;
    import javax.naming.*;
    import oracle.jbo.*;
    public class BestdataHelper {
    public static ApplicationModule createEJB()
    throws ApplicationModuleCreateException {
    ApplicationModule applicationModule = null;
    try {
    Hashtable environment = new Hashtable(8);
    environment.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    environment.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_EJB);
    environment.put(Context.SECURITY_PRINCIPAL, "TESTER");
    environment.put(Context.SECURITY_CREDENTIALS, "TESTER");
    environment.put(JboContext.HOST_NAME, "localhost");
    environment.put(JboContext.CONNECTION_PORT, new Integer("2481"));
    environment.put(JboContext.ORACLE_SID, "ORCL");
    environment.put(JboContext.APPLICATION_PATH, "/test/TESTER/ejb");
    Context ic = new InitialContext(environment);
    ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup("bestdata.BestdataModule");
    applicationModule = home.create();
    applicationModule.getTransaction().connect("jdbc:oracle:kprb:@");
    applicationModule.setSyncMode(ApplicationModule.SYNC_IMMEDIATE);
    catch (NamingException namingException) {
    throw new ApplicationModuleCreateException(namingException);
    return applicationModule;
    package bestclients;
    import bestdata.common.*;
    import certificate.*;
    public class BestClients extends Object {
    public static void main(String[] args) {
    BestdataModule bestdataModule = (BestdataModule)BestdataHelper.createEJB();
    Certificate aCertificate = new Certificate("TESTER", "TESTER");
    //calling a custom method!!
    bestdataModule.passCertificate(aCertificate);
    Thank you very much,
    Best regards,
    Svyatoslav Konovaltsev.
    [email protected]
    null

  • {SOL}Problem in Export/Import a simple table between two diff. characterset

    Hi ,
    I have created a simple table on SCOTT schema....
    SQL> CREATE TABLE TEST(A NUMBER(1) , B VARCHAR2(10));
    Table created
    SQL> INSERT INTO TEST VALUES(1 , 'TEST_TEST');
    1 row inserted
    SQL> COMMIT;
    Commit complete
    SQL> INSERT INTO TEST VALUES(2 , 'ΤΕΣΤ_ΤΕΣΤ');     <------------greek chars
    1 row inserted
    SQL> COMMIT;
    Commit complete
    The nls_parameters:
    SQL> SELECT * FROM NLS_INSTANCE_PARAMETERS;
    PARAMETER                      VALUE
    NLS_LANGUAGE                   GREEK
    NLS_TERRITORY                  GREECE
    NLS_SORT                      
    NLS_DATE_LANGUAGE             
    NLS_DATE_FORMAT               
    NLS_CURRENCY                  
    NLS_NUMERIC_CHARACTERS        
    NLS_ISO_CURRENCY              
    NLS_CALENDAR                  
    NLS_TIME_FORMAT               
    NLS_TIMESTAMP_FORMAT          
    NLS_TIME_TZ_FORMAT            
    NLS_TIMESTAMP_TZ_FORMAT       
    NLS_DUAL_CURRENCY             
    NLS_COMP                      
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSE
    17 rows selected
    SQL> SELECT * FROM NLS_SESSION_PARAMETERS;
    PARAMETER                      VALUE
    NLS_LANGUAGE                   AMERICAN
    NLS_TERRITORY                  AMERICA
    NLS_CURRENCY                   $
    NLS_ISO_CURRENCY               AMERICA
    NLS_NUMERIC_CHARACTERS         .,
    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
    17 rows selected
    and db characterset is EL8MSWIN1253
    I export such as(following generally the instuctions found on Note:227332.1-Metalink):
    C:\Documents and Settings\s_k>SET ORACLE_SID=EPESY
    C:\Documents and Settings\s_k>SET NLS_LANG=GREEK_GREECE.EL8MSWIN1253
    C:\Documents and Settings\s_k>C:\oracle\product\10.2.0\database10g\BIN\exp SYSTE
    M/passwd@EPESY FILE=C:\TEST.DMP TABLES=(SCOTT.TEST) ROWS=Y LOG=C:\TEST2.TXT
    Export: Release 10.2.0.1.0 - Production on ╩Ϋ± ╔ΎΫΊ 22 12:28:58 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ╕ήώΊί ≤²Ίϊί≤ύ ≤ί: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    ╟ ίΌάή∙ή▐ ▌ήώΊί ≤ΪΎ ≤ίΪ ≈ά±άΆΪ▐±∙Ί EL8MSWIN1253 Άάώ ≤ΪΎ ≤ίΪ ≈ά±άΆΪ▐±∙Ί NCHAR AL1
    6UTF16
    ╨±ΎίΪΎώΉά≤▀ά ήώά ίΌάή∙ή▐ Ϊ∙Ί Ώ±Ύ≤ϊώΎ±ώ≤Ή▌Ί∙Ί ΏώΊ▄Ά∙Ί Ή▌≤∙ ╙ΫΉέάΪώΆ▐≥ ─ώάϊ±ΎΉ▐≥ .
    ╧ Ϊ±▌≈∙Ί ≈±▐≤Ϊύ≥ ▄ΈΈάΌί ≤ί SCOTT
    . . ίΌάή∙ή▐ ΪΎΫ Ώ▀ΊάΆά                           TEST          2 ή±άΉΉ▌≥ ίΌ▐≈ϋύ≤
    άΊ
    ╟ ίΌάή∙ή▐ ΪίΈί▀∙≤ί ίΏώΪΫ≈■≥ ≈∙±▀≥ Ώ±ΎίώϊΎΏΎ▀ύ≤ύ.Then , i shutdown this database and i start the other.....
    with this nls_parameters
    SQL> select * from nls_session_parameters;
    PARAMETER                                                                        VALUE
    NLS_LANGUAGE                                                                     AMERICAN
    NLS_TERRITORY                                                                    AMERICA
    NLS_CURRENCY                                                                     $
    NLS_ISO_CURRENCY                                                                 AMERICA
    NLS_NUMERIC_CHARACTERS                                                           .,
    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                                                             CHAR
    NLS_NCHAR_CONV_EXCP                                                              FALSE
    17 rows selected
    SQL>
    SQL> select * from nls_instance_parameters;
    PARAMETER                                                                        VALUE
    NLS_LANGUAGE                                                                     GREEK
    NLS_TERRITORY                                                                    GREECE
    NLS_SORT                                                                        
    NLS_DATE_LANGUAGE                                                               
    NLS_DATE_FORMAT                                                                 
    NLS_CURRENCY                                                                    
    NLS_NUMERIC_CHARACTERS                                                          
    NLS_ISO_CURRENCY                                                                
    NLS_CALENDAR                                                                    
    NLS_TIME_FORMAT                                                                 
    NLS_TIMESTAMP_FORMAT                                                            
    NLS_TIME_TZ_FORMAT                                                              
    NLS_TIMESTAMP_TZ_FORMAT                                                         
    NLS_DUAL_CURRENCY                                                               
    NLS_COMP                                                                        
    NLS_LENGTH_SEMANTICS                                                             CHAR
    NLS_NCHAR_CONV_EXCP                                                              FALSE
    17 rows selected
    with this db characterset: UTF8
    C:\Documents and Settings\s_k>SET NLS_LANG=GREEK_GREECE.EL8MSWIN1253
    C:\Documents and Settings\s_k>C:\oracle\product\10.2.0\database10g\BIN\imp syste
    m/passwd@info FROMUSER=SCOTT TOUSER=SCOTT FILE=C:\TEST.DMP LOG=C:\TEST0_IMP.TXT
    Import: Release 10.2.0.1.0 - Production on ╩Ϋ± ╔ΎΫΊ 22 12:40:16 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ╕ήώΊί ≤²Ίϊί≤ύ ≤ί: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    ┴±≈ί▀Ύ ίΌάή∙ή▐≥ ϊύΉώΎΫ±ή▐ϋύΆί άΏⁿ EXPORT:V10.02.01 Ή▌≤∙ ≤ΫΉέάΪώΆ▐≥ ϊώάϊ±ΎΉ▐≥
    ίώ≤άή∙ή▐ ▌ήώΊί ≤ί ≤ίΪ ≈ά±άΆΪ▐±∙Ί EL8MSWIN1253 Άάώ ≤ίΪ ≈ά±άΆΪ▐±∙Ί NCHAR UTF8
    server ίώ≤άή∙ή▐≥ ≈±ύ≤ώΉΎΏΎώί▀ ≤ίΪ ≈ά±άΆΪ▐±∙Ί UTF8 (ϊΫΊάΪ▐ ΉίΪάΪ±ΎΏ▐ ≤ίΪ ≈ά±άΆΪ▐±
    ∙Ί)
    server ίΌάή∙ή▐≥ ≈±ύ≤ώΉΎΏΎώί▀ ≤ίΪ ≈ά±άΆΪ▐±∙Ί NCHAR AL16UTF16 (ϊΫΊάΪ▐ ΉίΪάΪ±ΎΏ▐ ≤ί
    Ϊ ≈ά±άΆΪ▐±∙Ί nchar)
    . ίώ≤άή∙ή▐ Ϊ∙Ί άΊΪώΆίώΉ▌Ί∙Ί ΪΎΫ SCOTT ≤ΪΎ SCOTT
    . . ίώ≤άή∙ή▐ ΪΎΫ Ώ▀ΊάΆά                         "TEST"          2 ή±άΉΉ▌≥ ίώ≤▐≈ϋ
    ύ≤άΊ
    ╟ ίώ≤άή∙ή▐ ΪίΈί▀∙≤ί ίΏώΪΫ≈■≥ ≈∙±▀≥ Ώ±ΎίώϊΎΏΎ▀ύ≤ύ.
    C:\Documents and Settings\s_k>SQLPLUS SCOTT/TIGER
    SQL*Plus: Release 10.2.0.1.0 - Production on ╩Ϋ± ╔ΎΫΊ 22 12:41:20 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ╙²Ίϊί≤ύ ≤ί:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> SELECT * FROM TEST;
             A B
             1 TEST_TEST
             2 ????_????What may be the cause.....????
    Note: I use db 10g v.2 on Windows XP platform.. and the two db instances reside on the same machine....
    Thanks...
    Sim

    "Generally speaking the value of the NLS_LANG registry key or environment variable needs to be equal to the characterset of the database."
    Yes...that's why i have set the NLS_LANG env.variable to GREEK_GREECE.EL8MSWIN1253 ..equal to:
    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 EL8MSWIN1253
    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.0"nls_language doesn't come into play, nor nls_instance_parameters."
    Yes...it's true.
    "So, in the dump you posted, no one can tell whether those characters were INSERTed correctly at all. Your NLS_LANG *registry key* may have been set to an incorrect value (it defaults to American_America.MSWIN1252)."
    Actually , i have used a third-party tool PL/SQL Developer (which does have the OracleDB10g as default home).
    Looking at the Windows registry of OracleDB10g the NLS_LANG is equal to GREEK_GREECE.EL8MSWIN1253.
    "Thirdly, as I implied above the NLS_LANG on import should have been American_America.UTF8."
    According to the Note 227332.1 , if the db characterset of the two dbs are not the same.. then it is preferable the conversion should be done on the import process and not the export....
    So, in an example described there -export from a AMERICAN_AMERICA.WE8MSWIN1252 db and import on UTF8 db - (seems exactly the same as mine) the import is done as such:
    c:\>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
           c:\>imp ....
    The conversion to UTF8 is done while inserting the data
           in the UTF8 database.Additional notes....
    I have used many different patterns doing the import......
    1) Use of AMERICAN_AMERICA.UTF8
    2) Use of GREEK_GREECE.EL8ISO8859P7
    3) Use the appropriate NLS_LANG that corresponds to the display of chcp command....
    All tries display some '?' chars.....
    Anyway... I 'll continue reading ... and testing
    Thanks... a lot for your points
    Sim

  • IMPORT & EXPORT from/to compressed files directly...

    for newbies a tip to import(export) directly to(from) compressed files using pipes . Its for Unix based systems only, as I am not aware of any pipe type functionality in Windows. The biggest advantage is that you can save lots of space as uncompressing a file makes it almost 5 times or more. (Suppose you are uncompressing a file of 20 GB, it will make 100 GB) As a newbie I faced this problem, so thought about writing a post.
    Lets talk about export first. The method used is that create a pipe, write to a pipe(ie the file in exp command is the pipe we created), side by side read the contents of pipe, compress(in the background) and redirect to a file. Here is the script that achieves this:
    export ORACLE_SID=MYDB
    rm -f ?/myexport.pipe
    mkfifo ?/myexport.pipe
    cat ?/myexport.pipe |compress > ?/myexport.dmp.Z &
    sleep 5
    exp file=?/myexport.pipe full=Y log=myexport.logSame way for import, we create a pipe, zcat from the dmp.Z file, redirect it to the pipe and then read from pipe:
    export ORACLE_SID=MYDB
    rm -f ?/myimport.pipe
    mkfifo ?/myimport.pipe
    zcat ?/myexport.dmp.Z > ?/myimport.pipe &
    sleep 5
    imp file=myimport.pipe full=Y show=Y log=?/myimport.logIn case there is any issue with the script, do let me know :)
    Experts, please have a look...is it fine ? (Actually I dont have Oracle installed on my laptop(though have Fedora 6) so couldnt test the scripts)
    I posted the same on my blog too. just for bookmark ;)
    Sidhu
    http://amardeepsidhu.blogspot.com

    actually, only the compression thing runs in the background. rest proceeds like normal only. just instead of giving normal file we use pipe as a file.
    nice article about named pipes
    Sidhu

  • Import/export--need help gurus!!!!!!

    C:\DOCUME~1\ADMINI~1>set oracle_sid=orcl
    C:\DOCUME~1\ADMINI~1>expdp scott/tiger directory=orcl_exp_datapump schemas=scott
    Export: Release 10.2.0.1.0 - Production on Tuesday, 12 February, 2008 19:35:34
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Starting "SCOTT"."SYS_EXPORT_SCHEMA_01": scott/******** directory=orcl_exp_datapump schemas=scott
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 32.62 MB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "SCOTT"."SYS_EXPORT_FULL_02" 7.628 MB 12224 rows
    . . exported "SCOTT"."SYS_EXPORT_FULL_03" 7.670 MB 12231 rows
    . . exported "SCOTT"."SYS_EXPORT_FULL_01" 7.080 MB 9573 rows
    . . exported "SCOTT"."SYS_EXPORT_TABLESPACE_01" 255.8 KB 318 rows
    . . exported "SCOTT"."DEPT" 5.656 KB 4 rows
    . . exported "SCOTT"."EMP" 7.820 KB 14 rows
    . . exported "SCOTT"."SALGRADE" 5.585 KB 5 rows
    . . exported "SCOTT"."TESTDEPT" 5.726 KB 7 rows
    . . exported "SCOTT"."BONUS" 0 KB 0 rows
    Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
    C:\ORCL_EXP_DATAPUMP\EXPDAT.DMP
    Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at 19:37:35
    C:\DOCUME~1\ADMINI~1>impdp abc/abc directory=orcl_exp_datapump dumpfile=expdat.dmp remap_schema=scott:abc
    Import: Release 10.2.0.1.0 - Production on Tuesday, 12 February, 2008 19:43:48
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORA-31626: job does not exist
    ORA-31633: unable to create master table "ABC.SYS_IMPORT_FULL_05"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPV$FT", line 863
    ORA-01031: insufficient privileges
    Any advise is appreciated!
    trying to import from scott schema to abc schema....but unsuccessful.
    DBA creates directory
    grants permission on the directory to scott and abc schemas
    exports scott schema (userid/password.....scott/tiger)
    imports to abc schema(userid/password....abc/abc)
    is this the right way?
    i need some assistance guys!!!!!!
    Message was edited by:
    oracle novice
    Message was edited by:
    oracle novice

    Please check the following minimum requirements are met;
    -CREATE SESSION
    -CREATE TABLE
    -object privileges READ and WRITE on the directory
    -sufficient tablespace quota on default user's tablespace
    Additionally the role IMP_FULL_DATABASE is needed:
    -to run an Import DataPump job that imports a different schema.
    These requirements apply to the user connected to the database while preforming Import Datapump Job.
    Additionally review Oracle Metalink Document: Export/Import DataPump: The Minimum Requirements to Use Export DataPump and Import DataPump (System Privileges Doc ID: Note:351598.1
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:5033277956381036007::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,351598.1,1,1,1,helvetica
    Adith

  • Export and import issue

    I would like to copy a materialized view from one database to another with data.
    I used datapump .I did the export as follows:
    export ORACLE_HOME=/oracle/product/10.1.0/db_1
    export ORACLE_SID=orcl
    $ORACLE_HOME/bin/expdp system/orc8737 tables="PIMS_REPO".\"DW_V_SELECTION_TXN_QSIII\" directory=DATAPUMPST dumpfile=expdp_txn.dmp logfile=expdp_txn.log
    expdp_txn.sh (END)
    I did the import as follows:
    impdp import_user/twoseven27 directory=datapumpst
    dumpfile=expdp_txn.dmp logfile=impdp_txn.log
    But it got copied as table and not as materialized view. I thought datapump can transform a materialized view to a materialized view.
    Can someone tell me what is wrong with the syntax.
    Thanks in advance.

    Thanks for your reply.
    But when I use
    $ORACLE_HOME/bin/expdp system/orc8737 directory=DATAPUMPSTEVE dumpfile=expdp_txn.dmp logfile=expdp_txn.log schemas=PIMS_REPO include=DW_V_SELECTION_TXN_QSIII
    it gives
    ORA-39001: invalid argument value
    ORA-39041: Metadata filter has no selectivity.

  • Export and import Oracle 10G database

    Hello all
    Can anyone tell me once for all how can i backup oracle 10G database and restore it in other computer (export and import)
    thanks alot
    Ron

    Do you can access to metalink?
    If not, I copy an paste this doc's....
    Doc ID: Note:10767.1
    Subject: How to perform FULL System Export/Imports
    Type: BULLETIN
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 18-APR-1994
    Last Revision Date: 30-AUG-2002
    Purpose
    This article highlights some important points to consider when performing
    a Full System Export and Import.
    Scope and Application
    It is intended to assist users performing FULL System Exports and Imports.
    A Full System Export and Import is a useful way to replicate or clean up
    a database. Please note the following guidelines when performing a Full
    System Export and Import:
    1. When performing the import, ensure you are pointing at the correct
    instance. Always check values for the SID and two task driver before
    proceeding.
    *Note:   On Unix systems, just entering a sub-shell, such as using
    C-shell, can change the database that the import would work
    against.
    2. When possible, it is advisable to take a physical copy of the
    exported database and the database you intend to import into before
    starting the import. This ensures any mistakes are reversible.
    3. NEVER run a FULL SYSTEM IMPORT on a machine that has more than one
    database UNLESS you are 100% sure all tablespaces have been
    pre-created. A full import will create any undefined tablespaces
    using the same datafile names as the exported database. There are
    situations where this is very dangerous:
    -> If the datafiles belong to ANY other database, they will be
    CORRUPTED. This is especially true if the exported database is
    on the same machine, because its datafiles will be re-used by
    the database you are importing into.
    -> If the datafiles have names that clash with existing operating
    system files.
    4. When exporting, it is advisable to also produce a report showing
    information you may need before / after the import:
    -> List the tablespaces and datafiles
    -> List the rollback segments
    -> List a count, by user, of each object type such as tables,
    indexes, etc.
    This enables you to ensure that tablespaces have been pre-created
    and to check the success of the import after it is complete.
    5. If you are creating a completely new database from an export, remember
    to create an extra rollback segment in SYSTEM, and make this available
    in the init.ora file before proceeding with the import.
    6. There are some versions of export that do not retain sequence numbers
    correctly. It is advisable to select next_value for each sequence
    after the export so that these can be checked after import.
    Following these guidelines will help you to avoid major problems.
    Doc ID: Note:174226.1
    Subject: How To Copy an Oracle Database To Another Machine
    Type: HOWTO
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 12-OCT-2001
    Last Revision Date: 01-OCT-2003
    goal: How to copy an Oracle database to another machine
    fact: Oracle Server - Enterprise Edition
    fix:
    Pre-requisites: The copy is between 2 machines, both have to be on the same OS
    and have to have exactly the same database version installed.
    1. Make sure the database you want to copy was closed with a SHUTDOWN IMMEDIATE,
    SHUTDOWN NORMAL or SHUTDOWN TRANSACTIONAL.
    2. Copy init.ora and control files to create instance and be able to go in
    mount mode. Check the init.ora for the locations where the controlfiles have
    to be, if those locations are not valid on the machine put the control files on
    different places and adjust the init.ora accordingly.
    3.a. Copy the datafiles (all of them).
    b. Copy the redo-logfiles (all of them).
    4.a. (Unix only) Set the environment variables:
    ORACLE_SID - set to the database name you wish to create
    ORACLE_HOME - set to full pathname of the Oracle system home directory
    PATH - needs to include $ORACLE_HOME/bin
    b. (NT/2000 only) Do 'set ORACLE_SID=<SID>'
    Use oradim to create the service for the instance. For more information
    on oradim please refer to (the part that refers to creating a new instance):
    Note:68720.1 Creating a new 7.3, 8.0, 8.1 Instance/Database
    5. Use servermanager (check the name to use for your version of oracle) or
    sqlplus (version 9i and above) to startup the database in mount mode.
    Do
    CONNECT INTERNAL/<PASSWORD>
    then
    STARTUP MOUNT
    Then do a rename of the copied datafiles if they are not in the same path as on
    the other machine. For all the files that are in the result of the query:
    SELECT NAME FROM V$DATAFILE;
    do
    ALTER DATABASE RENAME FILE '<oldfullpath>\<filename>' to <
    newfullpath>\<filename>';
    6. Query the datadictionary for the old location of the redolog files using:
    SELECT MEMBER FROM V$LOGFILE;
    If the new place is not the same as the old do:
    ALTER DATABASE RENAME FILE '<oldfullpath>\<redologfilename>' to &
    lt;newfullpath>\<redologfilename>';
    7. Now open the database:
    ALTER DATBASE OPEN;
    ******************************************************************

  • How to Import/Export database tables from one server to other in oracle8i

    Hello friend,
    Please can any one tell me how to import/export groups of database tables from one server with oracle to another using VB.net. It would be nice if some one can provide some code of it.
    I am a software developer and I am in middle of a large project development, in which I need to export a large oracle database from one server to another efficiently.
    Its very urgent so please someone help me.

    At command prompt (source db)
    set ORACLE_SID=db_name
    exp system/password@db_name full=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\exp.log filesize=2000M
    Then ftp the export dump files (in binary) to the other server or copy to target server over the network.
    At command prompt (target db)
    set ORACLE_SID=db_name
    imp system/password@db_name full=y ignore=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\imp.log filesize=2000M
    If the path names of the datafiles are going to be different in the target server (as compared to the source), then precreate the tablespaces before import. Set buffer value accordingly.
    Message was edited by:
    FeNiCrC_Neil

Maybe you are looking for

  • App Store Quits Immediately when trying to open. Recently updated to 10.9.2

    When trying to open the App Store on my mac, it immediately shows this. I recently updated to Mavericks 10.9.2 but had no immediate issue. This is an office computer and our IT guy decided to change some accounts and sharing but I am not exactly sure

  • Regexp and ampersand

    Hi all, I am using regexp to substring a clob of data. The data contains an ampersand (&) so i will need to add this to my regexp. The trouble is it doesnt take it as a literal character (even when using the escape [\] char before it), instead it thi

  • My MacBook Pro won't read my WILCO, Sky Blue Sky cd

    I have an unusual problem...My MacBook Pro won't open my WILCO, Sky Blue Sky cd. I've had to restart my laptop while pressing the mousepad down to eject the cd which keeps getting stuck whenever I insert it. I have burned this cd on my PC laptop and

  • Will I also get virus on my iPhone if I sync it with a computer with virus

    I am disinclined to test the sync application of my iPhone and iTunes for the reason that I knew my laptop contains viruses. If I sync my iPhone to my laptop for the first time will my iPhone also can be affected with virus? Thanks in advance for tho

  • Cannot open youtube in 5.1.1.

    This is weird, my iPad 2 can't open youtube app after updating to 5.1.1, tried both 3G and wi-fi the app keeps showing "cannot open" message all the time, haven't tried my iPhone with the same os yet.