Schema Refresh activity

Hi Gurus,
I am doing a schema refresh activity from Production db to Test db.
In PRODUCTION, I have a schema called LMS which has default tablespace as LMS and temporary TEMP.
In TEST schema is LMSTEST and it;s default tablespace and temporary tablespace is LMSTEST and TEMP respectively.
But;there is also a tablespace called LMS in TEST database.
I have dropped the user from TEST
created a user with same name
given default and temporary tablespace as LMSTEST and TEMP
given default roles to that users
given system privileges as well...
My poblem is while importing,my data is getting inserted into LMS where as it should go in LMSTEST as i made it default tablespace. Why it has happpened?????
I have also made quota zero on LMS in TEST database ,but still the data is getting inserted into LMS in tablespace and not in LMSTEST tablespace.....
Edited by: user13299764 on Aug 4, 2010 2:51 AM

In export/import utility the data to the target database goes to the same tablespace while doing import as it was in the source database tablespace.In your case LMS tablespace.so follow the below steps.
1.Either assign LMS as default tablespace to LMSTEST user.
or
2.After the import is over move all tables to the LMSTEST tablespace and rebuild the index on LMSTEST tablespace.
or
3.Take export using datapump and while import use remap_tablespace option.

Similar Messages

  • Schema refresh issue

    Hi Everyone,
                         can anybody do a correction ?  iam having the following query, there's some error in it, after executing schema refresh using export & import , to get count of database objects comparison to be done,
    -- SELECT 'TRUNCATE TABLE '||OWNER||'.'||TABLE_NAME||' ;' FROM DBA_TABLES WHERE OWNER='PRICING' order by  TABLE_NAME;
    SQL> SELECT 'select count(*) from  '||OWNER||'.'||TABLE_NAME||' ;' FROM DBA_TABLES WHERE OWNER='PRICING' order by  TABLE_NAME;
         the output expected  was to display each table name in a schema  following with corresponding number of records to be displayed, but it wasn't showing correctly,

    Hi,
    What Error you get , can you please share the Error log here.
    This is Dynamic Query so it will generate the sql statement  like
    select count(*) from  SCOTT.BONUS ;
    select count(*) from  SCOTT.DEPT ;
    select count(*) from  SCOTT.EMP ;
    You can try something this
    spool count.sql
    SELECT 'select count(*) from  '||OWNER||'.'||TABLE_NAME||' ;' FROM DBA_TABLES WHERE OWNER='PRICING' order by  TABLE_NAME;
    spool off
    @count.sql
    Hope this Help

  • Post Quality refresh activity in SRM

    Dear Experts,
    We are nearing to quality refresh in SRM7.02. I need to know the details on Post Quality refresh activity in SRM 7.02. like configuration in quality after refresh etc.
    Please suggest. If you have any such documents ready please send it to my email ID:
    [email protected]
    Regards,
    Abhishek

    What exactly you want ?
    Thanks
    Ankit

  • System refresh activity in Development Box

    Hi Guru's
    I have requirement for system refresh activity in development system and i would like to know what are pre-activity required for this other than when compared to normal system refresh and also please share me any link or snote related to this
    Regard
    Mohammed Sayeed

    Hi,
    This is SAP business one system administration forum. Please find correct forum and repost your question to get quick reply.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Schema refresh in the test DB

    Dear All/Aman,
    I have one database which having two schema, every day I am taking the schema level export and importing the same to my test server.
    Its taking time to import everyday inspite there is little changes in the schema.
    can I use the INCTYPE for the icremental import to reduce the time.
    the intention is to refresh the test schema every day.
    could you please provide some suggestion to minimize the Schema refreshment time.
    Is incremental impot available in 10g for schema level or do i need to go for RMAN.
    Please provide your input as earliest.

    The script which I have posted is just an example which i thought to going through that.
    the setup is like that: everyday from the production DB there is two schema getting export and import to the test DB.
    The test db is UAT where user needs to do any DML operation on that, however the business requirement is needs to get refreshed these two schema every day at certain time.
    So, my requirement is : whatever production DB is populating the data for the partilcular table in schema for the day it should reflect the same in test after importing. No matter what the user did in test DB
    But I don't want to import the full schema always as itsl taking to much time, so finding something like incremental import where table should import if its find any changes has happened in that else it should skip.
    hope you could understand my requirement.
    Let me know if you need any further details to help me.
    Regards,

  • Schema Refresh using exp/imp.

    Hello All,
    I want to perform Schema Refresh of SAMPLE user from producation to Testing envrionment using export/import.
    Cud u plz tell what is the command to perform it ?
    Also Cud anyone plz tell me whether same user(SAMPLE) in Test environment gets dropped before Import done.
    Can i Perform the exp/imp using sys/system or user SAMPLE?

    tvenkatesh07 wrote:
    Hello All,
    I want to perform Schema Refresh of SAMPLE user from producation to Testing envrionment using export/import.
    Cud u plz tell what is the command to perform it ?
    Also Cud anyone plz tell me whether same user(SAMPLE) in Test environment gets dropped before Import done.
    Can i Perform the exp/imp using sys/system or user SAMPLE?If you're runnnig 10g, then use Data Pump and read the documentation:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm#i1007466
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#i1007653
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • System Refresh activity

    Does any body have a clear explanation for the system refresh activity.
    and is System copy and  refresh one and the same
    if some one has steps please send them to me
    thank u

    Pavan ,
    when you are performing the client copy you are coping the tables and indexes.
    if your system have different patch level i way cause inconsistancy while client copy.
    Please check this forun to clear the situation
    Re: Error in Remote Client Copy
    thanks
    Rishi Abrol

  • Retain background jobs and its variants before system refresh activity

    Hello All,
    I am going to perform system refresh activity on quaity system on monday. Customer wants to retain the background jobs and its variants in the quality system. Please guide me and let me know the steps to retain the background jobs and its variants before starting the system refresh activity.
    Regards
    Subbu

    Dear Subbu,
    You have to export the TBT* Tables to retain the jobs. You can do this with R3trans:
    1. Make Export file
    2. Make Import file
    3. Make Export in Q System before Systemcopy
    4. Start Database and not SAP
    5. Make Import in Q after Systemcopy
    6. Start sap
    1. Make Export file /tmp/export_cmd
    export
    file='/tmp/export_Q.dmp'
    client=<your client>
    delete from TBTCA               
    delete from TBTCB               
    delete from TBTCCNTXT           
    delete from TBTCCTXTT           
    delete from TBTCCTXTTP          
    delete from TBTCI               
    delete from TBTCJCNTXT          
    delete from TBTCJSTEP           
    delete from TBTCO               
    delete from TBTCO_V01           
    delete from TBTCP               
    delete from TBTCPV              
    delete from TBTCR               
    delete from TBTCS               
    delete from TBTC_SPOOLID        
    delete from BTCEVTJOB
    select * from TBTCA             
    select * from TBTCB             
    select * from TBTCCNTXT         
    select * from TBTCCTXTT         
    select * from TBTCCTXTTP        
    select * from TBTCI             
    select * from TBTCJCNTXT        
    select * from TBTCJSTEP         
    select * from TBTCO             
    select * from TBTCO_V01         
    select * from TBTCP             
    select * from TBTCPV            
    select * from TBTCR             
    select * from TBTCS             
    select * from TBTC_SPOOLID 
    select * from BTCEVTJOB
    2. Make Import file /tmp/import_cmd
    import
    file='/tmp/export_Q.dmp'
    3. Make Export in Q System before Systemcopy
    R3trans -w /tmp/Q_export.log  /tmp/export_cmd
    4. Start Database and not SAP
    sqlplus "/as sysdba"
    SQL> startup
    or
    startsap
    stopsap r3
    5. Make Import in Q after Systemcopy
    R3trans -w /tmp/Q_import.log  /tmp/import_cmd
    If you want to undo this, start the export script in P system and the Import script in Q system.
    Don't be afraid of the delete statement but without delete it doesn't work!
    6. Start sap
    startsap
    Best regards
    Willi Eimler

  • How to Enhance or Speedup Datapump Schema Refresh

    Hi All,
    My environment is Oracle 10g Rel2 on RAC (Linux 5), central Storage... We are doing Datapump Schema refresh(Export) with parallel and excluding only grants; parameters. Is there any possibility to enhace the import process by importing metadata and data separately. We tried Parallel option, but still import takes much longer to complete. Is it anything to do with breaking import in two parts. But i dont know how to break the import task.
    Kindly reply with appropriate examples..Would appreciate your response.
    Thanks,
    Abdul Mannan

    Hi Hitgon,
    Please find the following details:
    how many physical cpu/core? - 16 CPU
    whether the os is 64bit/32bit? - 64 bit (64 bit Grid Servers)
    how many physical memory in os? - 12 Servers with (256 GB) and 4 Servers (64GB)
    how many memory assign to db? - SGA - 12GB & PGA - 6GB
    what the size of database? more than 1 TB
    what the size of schema you are going to import? around 700 - 950 GB
    import process running from remote client/server or it's the server import - we are initiating the job on server using (Putty).
    Using the following Export and Import Commands:
    Datapump Export parfile:
    JOB_NAME=Schema1_20120621_100122_27198
    DIRECTORY=DPUMP_Export
    PARALLEL=4
    DUMPFILE=Schema1_20120621_100122_27198_%U.dmp
    LOGFILE=DPUMP_EXPORT:DPEXPORT_20120621_100122_27198.log
    CONTENT=ALL
    FILESIZE=10000M
    Datapump Import parfile:
    SCHEMAS=Schema1
    JOB_NAME=Schema1_20120118_213551
    DIRECTORY=DPUMP_EXPORT
    PARALLEL=4
    DUMPFILE=SCHEMA1_20120114_025007_19273_%U.dmp
    LOGFILE=DPUMP_EXPORT:DPIMP_20120118_213551.log
    REMAP_TABLESPACE=Schema1DATA:Schema2DATA
    EXCLUDE=GRANT
    EXCLUDE=STATISTICS
    Would appreciate your reply..
    Thanks,
    Abdul Mannan

  • Number of users logged in during cube refresh activity

    I am using Hyperion 11.1.2.1 and running  Planning cube refresh activity using \Hyperion\Planning\bin\CubeRefresh.cmd.
    Is there any way to find out total number of users logged in into a particular Planning Application during Cube refresh activity running for that application ?

    I don't think Planning repository has information about sessions.
    Let us know if you succeed.
    I was not talking about Essbase as in "Essbase", all users that are performing an activity in Planning (data refresh, data load, run business rule) will show up in EAS sessions so if you run the maxl display session against Planning application it'll give you all users.
    Now OP, you can perform a search for "line count windows cmd" will give you ideas on how to count the lines and that count is going to be the numbers of users (well it is not the number of users, but number of sessions)
    ORA-00001: Unique constraint violated: Count lines in multiple files using Windows command prompt
    Regards
    Celvin

  • How to add a new schema in active directory by jndi?

    I can add new objectclass schema and new attribute into eDirectory from JNDI. But I failed doing the same to active directory. I search all topic in this forums and seems like there is no such answer. So for active directory, the only way to add new schema is by using MS MMC + AD schema snap-in?

    You can update the schema via LDAP. Any tool that uses LDAP, such as Active Directory Services Interface (ADSI), Java/JNDI, LDAP Data Interchange Format (LDIF) can be used. You are not restricted to the Active Directory Schema Management snap-in.
    I strongly recomend that you read the following article http://windowssdk.msdn.microsoft.com/en-us/library/ms677995.aspx as schema extensions are not to be undertaken lightly.
    Also, if you are extending the schema, DO NOT use other organization's schema OID's. Imagine how directories would become inoperable because you defined hat size as an integer value with an OID of 1.2.3 and someone else defined Social Security Number as a string with an OID of 1.2.3 ! You can obtain your own OID branch from either Microsoft (http://msdn.microsoft.com/certification/ad-registration.asp) or from a standards organization such as ANSI.
    I'm kind of hoping that seeing as though you have mentioned that you have extended the schema for e-Directory, that you understand LDAP schemas and that you have your own valid OID. Do not use my shoe size OID !
    The following snippet illustrates how to extend the schema using JNDI.....
    String attrName = "cn=ms-ShoeSize,cn=Schema,cn=Configuration,dc=antipodes,dc=com";
    LdapContext ctx = new InitialLdapContext(env,null);
    Attributes attr = new BasicAttributes(true);
    attr.put("cn","ms-ShoeSize");
    attr.put("objectClass","attributeSchema");
    attr.put("ldapDisplayName","msShoeSize");
    attr.put("isSingleValued","TRUE");
    attr.put("attributeID","1.2.840.113556.1.4.7000.141");
    attr.put("attributeSyntax","2.5.5.9");
    Context newattr = ctx.createSubcontext(attrName,attr);Having created a new attribute, you could then either add it to an existing class, or create another abstract class, add it to the new abstract class, and add the the new abstract class as an auxilliary class to an existing structural class. For example create a new auxilliary class called "clothes Sizes", add the attribute "Shoe Size" as a mayContain attribute, and then add "Clothes Sizes" as an auxilliary class to inetOrgPerson.
    Note that you need to wait for the schema cache to refresh, before adding attribute or class definitions to one another, and before instantianting new objects with the new classes & attribute definitions. You can either wait for teh schema cache to refresh itself, or you can force a refresh by writing the value of 1, to the attribute "schemaUpdateNow" on the RootDSE.
    As I mentioned at the start of this response, I personally prefer to use LDIF, simply because it enables end-users/customers to review the schema extensions and understand their potential impact before applying them. A sample that accomplishes the above would look something like:dn: CN=ms-ShoeSize,CN=Schema,CN=Configuration,DC=Antipodes,dc=com
    changetype: add
    objectClass: attributeSchema
    cn: ms-ShoeSize
    ldapDisplayName: msShoeSize
    attributeID: 1.2.840.113556.1.4.7000.141
    attributeSyntax: 2.5.5.9
    isSingleValued: TRUE
    dn:
    changetype: modify
    replace: schemaupdatenow
    schemaupdatenow: 1
    dn: CN=inetOrgPerson,CN=Schema,CN=Configuration,DC=Antipodes,dc=com
    changetype: modify
    add: mayContain
    mayContain: mSShoeSize
    dn:
    changetype: modify
    replace: schemaupdatenow
    schemaupdatenow: 1
    -

  • Problem Creating Oracle Schema in Active Directory

    Hi,
    I am trying to integrate oracle 9i in an Microsoft Active directory domain
    I tried to integrate the db in the domain using net configuration assistant on the Oracle Client but
    I get always the same error after inserting the fully name of domain controller and confirm to create the oracle schema. The error I get is:
    “The Assistant is unable to create or update
    the schema for the following reason:
    ConfigException: Could not create Oracle schema oracle.net.config.ConfigException
    You must update the schema from a computer which directly supports
    your type of directory."
    Also I checked every requirement to install:
    -Log on as an Administrative account in the domain
    -Enable active directory schema changes
    -ping the whole dns domain, the fqdn of my domain controller is dc.ecm.com, I can:
    ping dc.ecm.oracle
    At this point I don’t know anymore what I can do.
    Please help me
    Thank you in advance
    Fahim Ghauri

    Take a look at metalink Note:361192.1
    Bug 3975572 - "...Netca 10g can successfully create a schema and context in W2k but does not in W2003. This reproduces on both the domain server and a client..."

  • Schema refresh.

    I have a database server that supports a number of seperate applications, each application having its own schema and tablespace(s). to refresh the test database from live (or dev from test) we currently use transportable tablespaces to copy the data, and a datapump export/import to take care of objects held in the data dictionary (e.g. packages/procedures).
    Recently we hit a problem as the deveopers have started to use oracle text, when retesting our refresh method we have found that the users stop lists do not get recreated in the database being refreshed. thjis appears to be true of any similar pieces of information held in the CTSSYS schema, as the current usage of this feature is quite limited this isn't a problem at the moment as the stop lists canbe recreated manually what I would like to know is has anyone come accross similar features where a datapump export/import will not transfer the objects/information.
    Chris

    Hi ,
    The main theme of the Initial Load is to Synchronize the Source and Target data.
    Before executing an initial load, disable DDL extraction and replication. DDL processing is controlled by the DDL parameter in the Extract and Replicat parameter files.
    Please refer the below link., The pre-requisites are clearly mentioned in this.
    http://docs.oracle.com/goldengate/1212/gg-winux/GWUAD/wu_initsync.htm
    in this check the sub topic ----> 16.1.2 Prerequisites for Initial Load
    Regards,
    Veera

  • EvDRE: Refresh Active Sheet (for VBA)

    Is there a routine I can use that's the equivalent to:
    Right-click, EVDRE: Exand & Refresh...Active Sheet
    I'm aware of the VBA routines like MNU_eTOOLS_EXPANDANDREFRESH and MNU_eTOOLS_EXPAND, and MNU_eTOOLS_REFRESH---but did not find any documentation on this calling this.
    Edited by: Allison Jones on Mar 17, 2008 8:50 PM

    Those may be internal calls to the addin that are accidently exposed.  You should not call anything that isn't documented.  All the MNU commands are documented in the eTools help file I referenced earlier.  Choose, [eTools] > [BPC for Office help] then search on [MNU] and choose [BPC menu commands].
    You can either assign the macro to a form button or call them in a VBA routine as Joost mentioned.  If the goal is to just call the macro, the button works fine.  The only reason to call them from VBA is if you need to string together multiple operations in a single process.  Then you'd write your own macro and assign it to a button.
    The function that is equal to Expand and refresh on a report template would be MNU_ETOOLS_EXPANDANDREFRESH.  This does both an expand of dynamic members and a data refresh.  If you just need to update the data, MNU_ETOOLS_REFRESH is all that's needed.

  • Post System Refresh Activity - BDLS run

    Hi,
    We have finished system refresh of a QA system from Production.  We need to run BDLS now to convert the original Production logical systems to QA relevant logical systems. 
    I am short of understanding of this process.  Can anyone please help me with the concept and process?
    Thanks in advance,
    Abdul

    Hi Abdul Rahim Shaik,
    BDLS will convert the logical system name for your PROD to QAS.
    For eg:
    Your source - PRDCLNT100
    Your target - QASCLNT100
    If you go to SCC4 in your QAS, u will see Prod logical system name for the client.
    Once you run BDLS after system copy, logical system name exist  in every table for PRDCLNT 100 will change to QASCLNT100.
    Refer to below link for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/33/c823dbaea911d6b29500508b6b8a93/frameset.htm
    Cheers,
    Nicholas Chang

Maybe you are looking for

  • Dynamic Source File in SSIS

    I have a folder in which I have a .Zip file which come to that folder on a periodical basis. The file name varies from time to time. But I am making sure that there is only one file (.Zip) in that folder. I want that file to be copied to a different

  • How do I change the color of all the text in a PDF?

    Hi. I have a large PDF, over 1000 pages. Some of the text is highlighted which makes it difficult to see on my preferred document background. In Acrobat XI how do I change the color of all the text in the document back to black please? Although solut

  • Form content not being received

    I've created a contact form and set the form action to post the formmailer script pasted below. It correctly goes to the "thank you" page I've set up, but I never get anything in my inbox. I've tried including a hidden input field with the email addr

  • Weird problem with BBM

    hi there, I got my Z10 in the UK a few days ago (SIM free) i used it there on my orange (with BIS service) and worked AMAZING i love it Now i am back to Israel I put my simcard and everything works great! even app world but not bbm!  talked to my car

  • Low Volume - any cure?

    Finding the maximum volume is really low, especially when using skype, even with all on MAX volume.  Been through all settings on Realtek Audio to increase it but to no avail.  Anybody have a fix for this, are there updated audio drivers from Realtek