About Oracle 10g Data export/import

I have two DBs, let's call them AProd, BAcpt.
all tables/procedures/sequences etc. are defined same, only schema names are different, and the role names are different (e.g. In AProd, role 1 named as AProd_ROLE1, but corresponding role in BAcpt is named as BAcpt_ROLE1).
In order to use Aprod data to refresh BAcpt, in OEM, I established a DB link from BAcpt to Aprod and planned to use "Import from Database" option.
Option 1: By selecting "Schema" -> "Data Only", Import content type =" Import all objects", I am able to refresh BAcpt's tables with AProd's data, however, I can't refresh Sequences, especially the last_number of the sequences.
Option 2: By selecting " Schema" -> "All", Import content type =" Import all objects", I am afraid this will overrite all the roles/privs of BAcpt, and I have to run scripts to recreate BAcpt's roles, and grant those roles to users again...
Is there any better solution for this request?
Thanks,

Thank you first.
I did drop and recreate on target DB using source DB's sequences. Extending the original question a bit, if the sequence doesn't exist on target, I guess Option 1 won't bring over the new sequence/procedures from source DB either, correct?
Also for Option 1, It seems the Index also be updated........... Any document I can refer for details? I thought after import data, I need to "rebuild Index online" ... will it still be true ?
Thank you for any answers:-)

Similar Messages

  • Oracle 10g Data Dump---Import to different users

    Hi everybody,
    I exported data in oracle 10g using expdp in user schema(abc1).
    Now i want to import that data in different user schema (abc2) and another user schema (abc3). Both schemas (abc2 and abc3) are in same tablespace.
    How to do this. Shall i need to export that data in SYSTEM mode to import for different users..?
    Thanks in advance
    Pal

    Shall i need to export that data in SYSTEM mode to import for different users..?No need. You can use REMAP_SCHEMA option on import, e.g.
    impdp system/<password> directory=<directory> dumpfile=<dumpfile> remap_schema=abc1:abc2
    See http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref339

  • Oracle 10g - SCHEMA Export Import

    Hi
    I have a query - Whenever there are some changes in Database schema say for eg, New Columns are added, Some New Sequences are created and sundry other changes for an application release - What is the best way to take backup of the DDL so that I can bring the database / it's objects to the same position as they were in before the release?
    Regards
    Kapil

    You can take export of the schema. Its not required any downtime.
    Also, you take the cold backup and restore it to other server.
    Clone the database by RMAN duplication and restore it to other server before making the changes.
    Regards
    Asif Kabir

  • Comparision of Oracle upgrade(9i to 10g) and export/import process

    Hi Friends,
    I have a schema in Oracle 9i Database and i would like to have it in Oracle 10g.
    I ned to know what will be the advantages and disavantages between the Oracle upgrade(9i and 10g) and export/import (9i export and 10g import)process?
    Please suggest.
    Regards

    Please go this link for new features of 10g:
    [http://www.oracle.com/technology/pub/articles/10gdba/index.html]
    For export and import go to this link:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm
    Regards
    Asif Kabir

  • What is the role of Lns process in oracle 10g data guard

    Hi ,
    plz help me out to find out the actual working of lns process in oracle 10g data guard
    when i use SYNC redo transport
    the output of v$managed_stanbdy is like that ..
    PROCESS PID STATUS CLIENT_PROCESS GR# SEQ#
    ARCH 9258 CLOSING ARCH 2 498
    ARCH 9260 CLOSING ARCH 1 499
    ARCH 9262 CLOSING ARCH 2 496
    ARCH 9264 CLOSING ARCH 1 497
    LGWR 9206 CLOSING LGWR 2 482
    its not display any info about lns,thats means lns is not working in SYNC redo transport mode ?
    but if i changed it to ASYNC then the out put of v$managed_stanbdy is like this ..
    PS PID STS CPS GR# SEQ#
    ARCH 9258 CLOSING ARCH 1 509
    ARCH 9260 CLOSING ARCH 2 510
    ARCH 9262 CLOSING ARCH 1 505
    ARCH 9264 CLOSING ARCH 2 508
    LGWR 9206 CLOSING LGWR 1 503
    LNS 10528 CLOSING LNS 2 510
    Now it display all the info about lns process...
    i read in oracle documentation that lns process send redo data from primary,( through network service ) to RFS on standby side.
    but first output means that lns is not working,if not then which process send redo from primary to RFS on standby ?
    i also read in some blog that lgwr use some extra buffer size from primary db SGA ,to write redo in that buffer ,ans lns read redo from that buffer and send it to RFS on stanby side,
    i m totally confused ..can u plz help me with correct logic behind this .
    thanx in advance.

    Hello,
    On the primary database when you run the v$managed_standby, it shows up the LNS process as this process sends redo info to the standby database and on the standby database the RFS process receives the redo information.
    So on the primary database when you query the v$managed_standby, it shows up LNS and on the standby database when you query the v$managed_standby it shows up RFS. Please let us know where you are running the query.
    Refer this http://datadisk.co.uk/html_docs/oracle_dg/architecture.htm
    969752     
    Handle:     969752
    Status Level:     Newbie
    Registered:     Nov 6, 2012
    Total Posts:     9
    Total Questions:     2 (2 unresolved)
    Name     Hemendra Singh
    Location     NoidaPlease consider closing your questions by providing appropriate points and marking it as answered. Please keep the forum clean !

  • About oracle 10g release 2

    There are always some tpc-c test reports to preview the performance of new product half a year before it is available. But there is none about oracle 10g release 2 as normal. Why?

    yes, I saw that by googling... but I asked Oracle Support and they did not confirm it. I do not expect it before end of year.
    extract from tar with metalink:
    Hello Laurent Schneider
    We dont have the time frame Or release date for 10.2.0
    Details available only for next immediate patchset [for aix5] --> 10g R1 Patchset 2(10.1.0.4) which is April 04, 2005
    as you see, there is no date for 10.2. I am still waiting for 10.1.0.4...

  • Document about Oracle 10g New Features

    Hi all,
    I would like to share a document I wrote about Oracle 10g New Feature. I hope it would be useful.
    Currently, I am updating the document to include Release 2 features. Any comments or suggestion is appreciated.
    Download link:
    http://www.operflow.com/Oracle_10g_DB_Summary.pdf

    Hi Ahmed,
    Good Work !!!
    I just visit your blog it is very interesting about you and your country.
    Regards
    Taj

  • Error while connecting to oracle 10g data base

    Following is the code we used to connect to oracle 10g data base using symbian 7.1 series 80 SDK
    int CTest_S80AppUi::SetupODBC(void)
    RETCODE rc;
    char *DataSource = OD_DATA_SOURCE;
    char UserId = "system", Password = "manager";
    rc=SQLAllocEnv(&Henv);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocEnv", FALSE) < 0) return(-1);
    rc=SQLAllocConnect(Henv, &Hdbc);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocConnect", FALSE) < 0)
         //return(-1);
    rc = SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
              (unsigned char *)UserId, SQL_NTS,
              (unsigned char *)Password, SQL_NTS);
    bConnected = TRUE;
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLConnect", FALSE) < 0) return(-1);
    SQLAllocStmt(Hdbc, &Hstmt);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocStmt", FALSE) < 0) return(-1);
    return (1);
    } /* SetupODBC */
    iam getting the return code for SQLConnect as -1.
    Thanks in advance.

    Thanks for the reply.
    //syntax means comments.
    chk the following code.
    int SetupODBC(void)
    char *DataSource = "polite";
    char UserId = "system", Password = "manager";
    if ( SQLAllocEnv(&Henv) < 0 )
    return -1;
    if ( SQLAllocConnect(Henv, &Hdbc) < 0 )
    return -1;
    if ( SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
    (unsigned char *)UserId, SQL_NTS,
    (unsigned char *)Password, SQL_NTS) < 0 )
    return -1;
    if (SQLAllocStmt(Hdbc, &Hstmt) < 0 )
    return -1;
    return (0);
    As said earlier there is a problem in SQLConnect. It is returning -1.
    But the code should return 0 if successfully connected.
    The info regarding the arguments used in the above methods:
    HENV Henv; /* Handle to ODBC Environment object */
    HDBC Hdbc; /* Handle to ODBC Connection object */
    HSTMT Hstmt; /* Handle to ODBC Statement object */

  • Data export/import , different OS's

    HI,
    i have to export data from 10.2.0.1 database which is on Windows OS and import that data into a 9.2.0.6 database which is on IBM AIX Platform
    How can i perform the data export/import between different OS's?
    Kindly suggest
    Thanks
    SK

    You can use exp from your AIX machine DB, as it is 9i, it works as 9i client
    exp username/password@your_10gdb_ip_address/10gdb_instance_name file='your AIX path to store the dump' .......
    e.g: exp hr/[email protected]/orcl file='xxx' .........
    or if you have a tnsname entry configured for 10db in AIX 9i then use
    exp user/pass@tnsname file='xxxx'.....
    e.g: hr/hr@10gdb_on_win file='xxxxx' ........
    then import it from AIX by
    imp file='path of the dump reside in AIX' ..................
    Edited by: adnanKaysar on Mar 18, 2010 3:10 PM

  • How to export oracle 10g data into parts (in excel or csv or txt)

    is there any methods to export the data from oracle 10g in the form of excel or csc or txt. i already downloaded the sql developer tool but it only exports the data of upto one lakh rows ,but i have two tables of more than 3 lakh and 10 lakh rows respectively.for this i used where command to break the file through sql developer but that didnt work
    plz help me out if any thing possible
    i need to again import this data into microsoft sql if there is any direct method plz let me know

    I wrote my own pl/sql tool to make csv upload/download tool, but the learning process is a bit painful and long, especially for beginner like me (end up using dynamic sql package because we pass in table name as parameter).
    For your purpose, maybe the best way is to download a plug-in for Excel that can connect to your Oracle DB. There are many such products so you need to google around. For me, no need right now.
    Another option is to use a commercial tool like Toad, or other products from same company.

  • Oracle 10g EE Export Results in ORA-01001: invalid cursor Error

    Hi,
    I'm quite new to Oracle 10g and OCS10g. We have a crippled/corrupt SYSAUX tablespace (data file 3) which cannot be recovered using recover
    command anymore. So metalink support instructed us to do a export of the metadata of the working tablespace which contains our system data (we are in configuration stage for OCS 10g 10.1.2) via transportable tablespaces so that I can just recreate the database in DBCA and import the metadata. So after I made a cold backup, set the "transportable" tablespaces to "READ ONLY" mode, I proceeded w/ the export command which resulted in an error, please see below:
    $exp \'sys/********@ocs10gSID as sysdba\' parfile=transport.par
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 -
    Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    EXP-00008: ORACLE error 1001 encountered
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 899
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at "SYS.DBMS_TTS", line 811
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: '/ocfs/oradata/OCS/datafile/o1_mf_sysaux_2mgzbr51_.dbf'
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1444
    ORA-06512: at line 1
    Anyone encountered this problem before? Any recommendations or tips to get this working?
    I checked this url:"http://luhartma.blogspot.com/2006/05/how-to-check-if-tablespace-is.html"
    And when I try to follow the instructions and check on of the tablespace I set to and verified to be in "READ ONLY" mode, I get the same error.
    SQL> connect / as sysdba
    Connected.
    SQL> exec dbms_tts.TRANSPORT_SET_CHECK('PORTAL',TRUE)
    BEGIN dbms_tts.TRANSPORT_SET_CHECK('PORTAL',TRUE); END;
    ERROR at line 1:
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 899
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at "SYS.DBMS_TTS", line 811
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: '/ocfs/oradata/OCS/datafile/o1_mf_sysaux_2mgzbr51_.dbf'
    ORA-06512: at "SYS.DBMS_TTS", line 840
    ORA-06512: at line 1
    Hope someone can help on this or at least provide a suggestion. Data file 3 above is the reason we are doing a transportable tablespace export & db recreation.
    BTW what we have is:
    OCS 10g 10.1.2 w/ Oracle RDBMS 10g Enterprise Edition 10.1.0.4.2
    RHEL4 Update2
    Thanks in advance.
    Regards,
    -Kenth

    Hi,
    The status is "RECOVER" we have actually tried to recover but unfortunately the archive logs that were needed were on disks and were lost during one of the server hardware failures. Actually that is the reason why metalink support recommended this route for getting everything in order since we don't have any application data in SYSAUX yet.
    Thanks.

  • Oracle 10g - Date format in SELECT query for CFOUTPUT

    Hello, everyone.
    The project that I am working on in the dev environment is connected to an Oracle 11g database, but the production side is Oracle 10g.
    I have a page that is erroring in production (but not development) when it gets to a date that it needs to display.
    A co-worker mentioned that, in 10g, if a date/time is being SELECTed, you have to put it in to_char(), so I did that.
    But it's still erroring, and I'm not getting an error message, so I'm assuming that I have an incorrect format for the date in the SELECT.
    What is the proper format for SELECTing a date/time when using to_char()?  Right now, I have SELECT to_char(create_date,'MM-DD-YYYY HH:MI') FROM tableA .  Is this not correct for CF to output?
    Thank you,
    ^_^

    Please see my original post ("I have a page erroring in production (but not in development) when it gets to a date that it needs to display.")  Sorry if it came across as vague.  It made sense, to me, when I typed it.  But, then, I'm usually typing fast just to get the question out there, when I'm in a hurry.
    Haven't done a CFDUMP, yet, as every time I make a change in development that needs to be tested in production, I have to notify my supervisor that there are files that need to be copied into production, which can sometimes take a while, so I try to do troubleshooting on dev side - it's a pain in the you-know-what, but that's the kind of environment I'm working in.
    As it turns out, changing the format in the SELECT to_char() did the trick.  If anyone else has this issue with Oracle 10g, I'm now using SELECT to_char(create_date,'YYYY/MM/DD HH:MI') FROM tableA, and now the CFOUTPUT is processing the whole page.  I guess the MM-DD-YYYY threw CF into a tizzy, breaking the process?
    Anyhoo, it's working, now.  Thank you, Dan and Adam, for your thoughts on this.
    ^_^

  • Migrating from Sybase 11 to Oracle 10G : Data not Captured

    Hi,
    We are working on an interesting customer engagement - one part of the effort is to migrate our Customer's Database. Our Customer is using the Sysbase 11 Database - we are planning to migrate this to Oracle 10G.
    We are using the latest Migration Workbench - 10.1.0.4.0. We created a new user in one of our local DB Instances & used this credential to login to the Migration Workbench tool. We have the Source Files for the Sysbase 11Database.
    We tried to capture the Source Model - unfortunately, the Tool claims that the Objects have been migrated, while the Source is not captured at all. The Error Log is alos silent about any problems.
    We are flummoxed by this error as we have successfuly migrated from Sysbase in the past, but never encountered this error.
    Can you guuys please help us out with this ?
    Please do let me know if I need to post more information
    Thanks,
    Sandeep

    Sandeep,
    Have you used this user which holds the omwb repository before for a migration? When you connected the first itme, did you get a message, that the repository tables did not exist and would you like to create them?
    Are you using the connected or disconnected source model load?
    Donal

  • SQL SSRS 2008 DateTime Calendar Control and Oracle 10g Data Source

    Hello. I am creating reports in SSRS 2008 using the calendar control for a date range. Let's say we select a start date of 3/3/2012. This parameter is sent into my SQL statement in the WHERE clause which is executed against an Oracle 10g database. All syntax has to be in SQL that Oracle understands, so no CONVERT or CAST.
    The format of the date is throwing an error "ORA-01843: not a valid month" when I try to use the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= TO_DATE('3/03/2012', 'MM/DD/YYYY')
    I get ORA-01722: invalid number when I try the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
    I cannot find a way to format the date parameter in SQL Server SSRS before it gets to the SQL to be executed in Oracle.
    Please help.
    Thanks,
    Sunny

    920616 wrote:
    sb92075: I am showing you how Oracle renders the date if I do a simple select from the table from which I am trying to pull data. You are right, it sure doesn't prove anything other than how the date looks right out of the Oracle database, but hopefully, it will give a clue as to how I need my SSRS date parameter to work.
    Hans Forbrich:
    I get ORA-01722: invalid number when I try the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
    Solomon:
    It works. The problem is getting the parameter '3/3/2012' into a usable format for Oracle.
    Let's assume an application is sending in '3/3/2012' which will be used in an Oracle query (no PL/SQL allowed, nor can I create functions, stored procedures, etc - only straight up SQL). How can I prepare the parameter to successfully do the compare on the Oracle Date field?
    12:50:23 SQL> select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual;
    select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual
    ERROR at line 1:
    ORA-01722: invalid number
    12:51:00 SQL> ed
    Wrote file afiedt.buf
      1* select TO_DATE('03/03/2012', 'MM/DD/YYYY') from dual
    12:51:20 SQL> /
    TO_DATE('03/03/2012
    2012-03-03 00:00:00

  • Oracle 10g Data Guard

    Hello to all.
    I am looking forward to implement Logical standby database for one of my clients. I want to know about licensing implications for the same. Does creation of logical standby database in Oracle 10g require a License?? If if it does then what kind of license is required????
    Current setup :
    RHEL 5.5 64 bit
    Oracle Database 10.2.0.4 (Production Server)
    Oracle Database 10.2.0.4 (Physical Standby Server)
    We are having Enterprise Edition licenses for both.

    Start by posting in the relevant forum: {forum:id=849}

Maybe you are looking for

  • Data Sources Discrepency in R/3 DEV and QA

    I compared RSA6 in R/3 DEV with R/3 QA and there were many data sources missing from the QA system. WHy is that? Is that normal? What do I need to do match the two systems? Thanks. Message was edited by:         BobbySi

  • "Could Not Open the Communication Device"  ???

    I use a dial up connection. Everytime I try to connect to the internet, after it dials a message box pops up that says "Could Not Open the Communication Device". Has anyone else had this problem? And how do I fix it? Please help me.

  • Indexed color and transparency in PNGs

    I'm working with a software developer who is revising his subtitle rendering application to meet my company's specifications. The renderer produces an image sequence, and we agreed on using PNGs with a transparent background as the format for the ima

  • Hide and show to Show

    Hi friends, how do i make hide & show templte to just show dont hide format ? my java script is > <table class="std" style="width:100%;" > <tr><td align=left width = 100%><div align = left width=100%><a href="javascript:hideShow('region#REGION_SEQUEN

  • Elements Photoshop 11 vs Photoshop CS 6?

    Is Elements Photoshop 11 highter than Photoshop CS 6?