Schema to schema copy

Hi,
I have to replicate one schema from one database to other. This has to be done through a shell script and would be a part of a weekly scheduled activity.
I have two ways in mind to do it:
1./ Export the schema dump on one machine, ftp to the other machine and then import it( all through a shell script)
2./ The other way is create a DB link. Drop the schema on target machine and copy the schema using this link.
Now i have performance as a major inflicitnig issue and need to know which one of the method is more reliable. The other thing is i am sure there would be a standrad procedure to achieve the set objective. Please help me thorugh this.
Thanks in advance!

Can u explain it a bit more. I understand you are
cutting down on the ftp process which is fine but is
there any better way u can think of coz this dump is
around 300 MBThe 300 MB of schema data must anyhow move from one computer to another, and I can't see why ftp eliminates this need...
In the way that I suggested you read the dump file only once, as opposed to twice in the ftp+imp method. Therefore, performance should be better while network traffic stays approximately the same.
Message was edited by:
Jonathan Jacobson

Similar Messages

  • XML Schemas & XML SCHEMA COLLECTIONS: XSD.exe & the tool in C:\Program Files (x86)\Microsoft SDKs\Windows\v7..0A\Bin\x64?.

    Hi all,
    I just read Pages 346-348 of the book "Microsoft SQL Server 2012 Bible" written by A. Jorgensen, P. LeBlanc, J. Chinchilla, J. Segarra & A. Nelson (published by Wiley) regarding XML Schemas and XML SCHEMA COLLECTIONS: Step 1.  create and
    save orderxml.xml
    <Order OrderID="1">
    <Item>
    <ItemNumber>V001</ItemNumber>
    <Quantity>1</Quantity>
    <Price>299.99</Price>
    </Item>
    </Order>
    Step 2.  using the tool in the following location:
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64
    Open a command prompt, and navigate the preceding directory. The syntax for creating schema is: Xsd.exe C:\temp\orderxml.xml /outputdirectory:c:\temp  to create the orderxml.xsd file.  
    Step 3. Copy all the contents of the orderxml.xsd file to the clipboard, and create a new query window in SQL Server Management Studio, pasting in the content of the clipboard. To create the XML Schema Collection, you need to add the CREATE XML SCHEMA COLLECTION
    statement to the beginning of the schema as shown below:
    --MSss2012bibleP348.sql for XML Schema Collection OrderInformationSchemaCollection
    -- Copied and executed by SHC (Date & Time): 24 April 2015 8:05 AM
    USE ScottChangDB
    GO
    Create XML SCHEMA COLLECTION OrderInformationCollection AS
    N'<?xml version="1.0" encoding="utf-16"?>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:msdata="urn:schema-microsoft-com:xml-msdata">
    <xs:element name="Order">
    <xs:sequence>
    <xs:element name="Item" minOccurs="0" maxOccurs="unbounded".
    <xs:complexType>
    <xs:sequence>
    <xs:element name="ItemNumber" type="xs:string" minOccurs="0" />
    <xs:element name="Quantity" type="xs:string" minOccurs="0" />
    <xs:element name="price" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="OrderID" type="xs:string" />
    </xs:complexType>
    </xs:element>
    <xs:element name="NewDataSet" msdata" msdata:IsDataSet="true"
    msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded'>
    <xs:element ref="Order" />
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>' ;
    /* Apply it to the table/columns */
    ALTER TABLE ItemInfo
    ALTER COLUMN ItemData xml (OrderInformationCollection)
    GO
    I prepared (i) the orderxml.xml file for Step 1 and Step 2, and (ii) the MSss2012bibleP348.sql file for Step 3. But I am not sure that I can do the Steps (i) and (ii) in my PC that does not have the regular version of Microsoft SQL Server 2012 and Microsoft
    Visual Studio 2012. Furthermore, I  have difficulties to do Step 2 and Step 3 in my PC that is the part of Windows 7 Lan Computer System in my office: I navigated to my C:\Program Files (x86)\Microsoft SDKs\v7.0A\Bin\, I did not see the x64
    thing in the  Bin folder, but, I saw the xsd.exe in the Bin folder. If I click the xsd.exe and I get the following in the bottom of the PC screen:   
    xsd.exe Date modified:12/122011 12:55 PM    Date created:  12/12/2011  12:55 PM
    Applicaion    Size:81.8 KB
    Also, I see my PC screen flashes (and it looks like a dialog box with black background to flash for me to type the command) quickly. I am lost completely in this step and I don't understand the whole thing in doing Step 1, Step 2, and Step 3
    I briefly summarized/described/presented above.
    I need the following help from the experts of XML Schemas and XML Schema Collections in Microsoft SQL Server 2012 Management Studio:
    Help #1: I don't understan the concept of Step 1, Step2 and Step 3 to do XML Schema, XSD.exe, and XML Schema Collection in the SQL Server 2012!!?? I just have the SQL Server 2012 Management Studio (SSMS2012) in my PC.
    Help #2: How can I execute the xsd.exe in my C:\Program Files  (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ folder?
    Help #3: I just learned the basic things of creating XML SCHEMA COLLECTIONS in my SSMS2012 directly. Is the MSss2012P348.sql (I created and presented above) right for the task? How can I use clipboard to create the XML Schema Collection in my ScottChangDB
    database?
    Please kindly help and give me the answers/comments for Help #1, Help #2 and Help #3.
    Thanks in advance,
    Scott Chang  

    Hi Scott,
    Help #1: I don't understan the concept of Step 1, Step2 and Step 3 to do XML Schema, XSD.exe, and XML Schema Collection in the SQL Server 2012!!?? I just have the SQL Server 2012 Management Studio (SSMS2012) in my PC.
    Step1 and Step2 not that related to SQL Server, you can get the XSD from a given XML with an online XSD generator.
    Google search: XSD generator
    Help #2: How can I execute the xsd.exe in my C:\Program Files  (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ folder?
    Please see the link in the #1
    Help #3: I just learned the basic things of creating XML SCHEMA COLLECTIONS in my SSMS2012 directly. Is the MSss2012P348.sql (I created and presented above) right for the task? How can I use clipboard to create the XML Schema Collection in
    my ScottChangDB database?
    See the syntax and example in
    create XML schema collection
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Could not locate compiled schema resource schema/system/s1130C5BD40C5682431D4FD64179031DE/index.xsb

    can somebody pleas tell me why is xmlbeans looking for an index.xsb? i cant run
    my java classes because it is looking for this file. how can i solve this?

    Unfortunately the generated error messages are really misleading. Nevertheless
    I was able to find the solution.
    The orginal error message was:
    Caused by: java.lang.RuntimeException: Could not instantiate SchemaTypeSystemImpl
    (java.lang.reflect.InvocationTargetException): is the version of xbean.jar correct?
    I tried to locacate the error somewhere in the implementation of XMLBeans, but
    no success. Afterwards I included an printStackTrace() command in the code section
    where the error has been thrown and the more detailed error message was:
    Could not locate compiled schema resource schema/system/sC8870485F5E7AEB8A9BBEB56FEB321E8/index.xsb
    Obviously the schema resource has not been compiled. Then I looked in the parameters
    of scomp and found:
    H:\UserData\SunONE\XMLBeans>scomp
    Compiles a schema into XML Bean classes and metadata.
    Usage: scomp [opts] [dirs]* [schema.xsd]* [service.wsdl]* [config.xsdconfig]*
    Options include:
    -cp [a;b;c] - classpath
    -d [dir] - target binary directory for .class and .xsb files
    Obviously the xsb Files are not generated, if the target binary directory is not
    explicitly mentioned. Therefore I modified the compile command to
    H:\UserData\SunONE\XMLBeans>scomp -src GenClasses -d GenClasses -out myMainData.
    jar MainData21.xsd
    and, voila, it works!!!!!

  • JAXB & the W3C schema for schemas

    When I try and run JAXB over the W3C schema for schemas I get loads of error messages during the parsing concerning the simple type definitions which restrict the xs:whiteSpace property of xs:simpleType.
    Has anybody else tried to run JAXB over the schema for schemas?
    Has anyone been successful?
    Cheers,
    Simon

    I also tried to compile Schema for Schemas (normative)
    from http://www.w3.org/TR/xmlschema-1/#normative-schemaSchema
    This one in definition of schema in fact, but I can't compile it with JAXB. The error messages are :
    [ERROR] rcase-Recurse.2: There is not a complete functional mapping between the particles.
    line 776 of schema.xsd
    [ERROR] derivation-ok-restriction.5.3: Error for type 'all'. The particle of the type is not a valid restriction of the particle of the base.
    line 776 of schema.xsd
    [ERROR] rcase-Recurse.2: There is not a complete functional mapping between the particles.
    line 478 of schema.xsd
    [ERROR] derivation-ok-restriction.5.3: Error for type 'simpleRestrictionType'. The particle of the type is not a valid restriction of the particle of the base.
    line 478 of schema.xsd
    [ERROR] rcase-Recurse.2: There is not a complete functional mapping between the particles.
    line 432 of schema.xsd
    [ERROR] derivation-ok-restriction.5.3: Error for type 'complexRestrictionType'. The particle of the type is not a valid restriction of the particle of the base.
    line 432 of schema.xsd
    Failed to parse a schema.
    One can see that all messages about the same problem.
    It looks like a bug in JAXB because normative schema must be compiled , I guess...
    Is anyone has any idea how to solve the problem?
    WBR Slava

  • BUILD FAILED java.lang.Error: unable to load schema-for-schema for W3C XML

    I am new to JAXB, I am trying to run the sample applciations on Win 98,
    I have set up the environment values as per the UserGuide specs.
    I am getting the following error:
    BUILD FAILED java.lang.Error: unable to load schema-for-schema for W3C XML Schema at com.sun.msv.reader.xmlschema.XMLSchemaReader.getXmlSchemaForXmlSchema (XMLSchemaReader.java:190)
    Could someone please suggest a solution.
    Thank you.

    Hi
    I am using Windows 2000 and I am repeatedly getting the same error too (See below). Would appreciate any help ..
    parsing a schema...
    org.iso_relax.verifier.VerifierConfigurationException
         at com.sun.msv.verifier.jarv.FactoryImpl.compileSchema(FactoryImpl.java:104)
         at org.iso_relax.verifier.VerifierFactory.compileSchema(Unknown Source)
         at org.iso_relax.verifier.VerifierFactory.compileSchema(Unknown Source)
         at com.sun.msv.reader.xmlschema.XMLSchemaReader.getXmlSchemaForXmlSchema(XMLSchemaReader.java:186)
         at com.sun.tools.xjc.Driver$1.<init>(Driver.java:477)
         at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:476)
         at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
         at com.sun.tools.xjc.Driver.run(Driver.java:268)
         at com.sun.tools.xjc.Driver.main(Driver.java:88)
         at sample1.Binder.main(Binder.java:18)
    StackTrace of Original Exception:
    java.lang.NullPointerException
         at com.sun.msv.datatype.xsd.TypeIncubator.addFacet(TypeIncubator.java:64)
         at com.sun.msv.reader.datatype.xsd.XSDatatypeExp$1.addFacet(XSDatatypeExp.java:87)
         at com.sun.msv.reader.datatype.xsd.FacetState.startSelf(FacetState.java:56)
         at com.sun.msv.reader.State.init(State.java:154)
         at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:579)
         at com.sun.msv.reader.datatype.xsd.TypeState.startElement(TypeState.java:101)
         at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
         at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874)
         at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
         at com.sun.msv.reader.GrammarReader._parse(GrammarReader.java:459)
         at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:434)
         at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:407)
         at com.sun.msv.reader.xmlschema.XMLSchemaReader.switchSource(XMLSchemaReader.java:683)
         at com.sun.msv.reader.xmlschema.ImportState.startSelf(ImportState.java:41)
         at com.sun.msv.reader.State.init(State.java:154)
         at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:579)
         at com.sun.msv.reader.SimpleState.startElement(SimpleState.java:72)
         at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:877)
         at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:569)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:759)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
         at com.sun.msv.reader.GrammarReader._parse(GrammarReader.java:459)
         at com.sun.msv.reader.GrammarReader.parse(GrammarReader.java:449)
         at com.sun.msv.reader.xmlschema.XMLSchemaReader.parse(XMLSchemaReader.java:89)
         at com.sun.msv.verifier.jarv.XSFactoryImpl.parse(XSFactoryImpl.java:26)
         at com.sun.msv.verifier.jarv.FactoryImpl.compileSchema(FactoryImpl.java:95)
         at org.iso_relax.verifier.VerifierFactory.compileSchema(Unknown Source)
         at org.iso_relax.verifier.VerifierFactory.compileSchema(Unknown Source)
         at com.sun.msv.reader.xmlschema.XMLSchemaReader.getXmlSchemaForXmlSchema(XMLSchemaReader.java:186)
         at com.sun.tools.xjc.Driver$1.<init>(Driver.java:477)
         at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:476)
         at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
         at com.sun.tools.xjc.Driver.run(Driver.java:268)
         at com.sun.tools.xjc.Driver.main(Driver.java:88)
         at sample1.Binder.main(Binder.java:18)
    java.lang.Error: unable to load schema-for-schema for W3C XML Schema
         at com.sun.msv.reader.xmlschema.XMLSchemaReader.getXmlSchemaForXmlSchema(XMLSchemaReader.java:190)
         at com.sun.tools.xjc.Driver$1.<init>(Driver.java:477)
         at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:476)
         at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
         at com.sun.tools.xjc.Driver.run(Driver.java:268)
         at com.sun.tools.xjc.Driver.main(Driver.java:88)
         at sample1.Binder.main(Binder.java:18)
    Exception in thread "main"
    -Thanks
    Guna

  • Optimization in schema to schema copy

    Hi ,
    As part of my assignment ,we will be having daily ETL in schema A.
    To protect data in case of ETL failures,we do have schema B also.
    Daily before initiating ETL ,A2B copy will be done for backup purposes and also for making the database online for 24*7.
    As of now ,we are following the below strategy for copying A2B.
    1.Drop all indexes and constraints in schema B
    2.Do partition to partition copy
    3.Do hash value test to validate step 2
    4.Rebuild all indexes and constraints
    5.Stats gathering
    As of now ,its taking 3-4 hours for copy.
    Is there any way to expedite it further.
    All suggestions are accepted.
    Please post your suggetsions.
    Thanks.

    If your ETL process is a full reload, then there is no need to do both A and B on the same day. A and B will trade roles of "current" and "backup" with each reload.
    If your ETL process is based on applying changes since the previous day then you may need to run it against both schemas.
    This makes sense for cases where your ETL process runs and data is static until the next run. If ETL runs and then some other activity (OLTP for example) occurs on the data then this approach won't be a good fit.

  • Optimum way of performing schema to schema tables copy

    Hi ,
    I have a requirement where data in one schema need to be copied to other.
    Say there are 100 tables in schema A.There ia schema B , which consists of same tables and as a need for backup , we will be copying all tables from A to B schema on daily basis.
    And all tables in a schemas are related to each other like foreign key relationships .
    I could think of the following steps.
    Each and every step has to be completed fully before we start next step.
    1.Drop Constraints for all tables in B .
    2.Drop indexes  for all tables  in B
    3.Truncate tables for all tables in B
    4.Do Data copy  for all tables  from A->B
    5.Index rebuild in the order UNIQUEP,UNIQUE,BITMAP,INDEX, PRIMARY ,FOREIGN.
    Can you please suggest me if this can be the optimum way to perform copy .Or can we do in parallel any of the above activties , so that we can save some time.
    Please let me know if we can parallelise things technically so that copy wont get affected.

    Hi,
    >>We will be copying all tables from A to B schema on daily basis.
    What is you Db version, You can use the datapump export/import or datapump API check this :ORACLE-BASE - Oracle Data Pump (expdp and impdp) in Oracle Database 10g
    HTH

  • What is tcode for schema(list schema in BW3.5) in BI 7.0

    Hi all,
                If any of you know tcode for schema in BI7.0, pls let me know
    Thank you

    Hi Jr,
                Thanks for the reply.  I have old cubes (3.5) migrated into BI 7.0 environment and I have new cubes which are created under new (7.0 ) environment. When I am trying to do LISTSCHEMA I can able to pull up only old version cubes(3.5) migrated into new environment only. I am not at all seeing any other cubes.
    I hope this helps.
    Thank you
    Jason

  • Database with many schemas - query schema depending on user

    Let's assume we have a number of schemas in a database (hundred or so), which all contain the same tables.
    The customer wants one application express application which accesses only the schema corresponding to the user that is currently logged in.
    So database schema user1 contains table EMP, and schema user2 also contains EMP. Now the application is assigned both schemas user1 and user2, and when user2 logs in he only sees database schema user2.
    Is this possible with Apex? I've tried both built-in authentication and database authentication for the application, but found out this is truly only about authentication, because the query is always executed by APEX_PUBLIC_USER.
    How can I manage which schema is accessed with the authenticated user?
    Thanks in advance!

    Patrick,
    Every apex application has an "owner" attribute which is used as the parsing schema. All SQL and PL/SQL in your app is parsed as that schema using that schema's privileges. It is as if your application were a definer's rights stored procedure in that schema. The APEX_PUBLIC_USER schema is simply used to create the session and has no bearing on privileges. Currently there is no way to change the owner attribute of an application at runtime. However, your application can operate with any schema in the database according to the privileges granted to the parsing schema. Something along the lines of what you described was discussed at length in the following thread, maybe it will give you some ideas to try out: Access to owner schema throught APIs
    Scott

  • Schema And Schema Objects

    MySQL is a database server that can have several 'databases' each with it's own connection params, privileges, users and objects (tables, views etc). Oracle however has the structure of a 'single database' with 'categorized' objects (if I am correct), that is a database with one or more schemas (usually mapping to users) each containing objects (tables, views etc). If I want to build an application on oracle (I am using Oracle XE) that has several subsystems or modules (HR, Finance, Operations etc) and I want the subsystems to have their own boundaries (like their own database in MySQL, or their own schema in Oracle) containing only relevant objects but interconnected by the usage of the application (the application creates value or functionality across these subsystems), how do I go about structuring my database to handle this, since schemas map to users.
    Putt another way, since I'll be working with a user account (a schema) can I have schemas within this account / schema to contain objects for the modules. Wherever the 'module schemas' are, how do I interact with them collectively with my login account which I will use as the database connection within the application.
    I don't know if this is the best way to go about it, but my project requirement has changed to one that should have clearly defined modules having similar structures in the database that can be scaled up to their own database in a database server or each in it's own database server.

    I did not mention this, but I also already tried that without success. Whether 'DEPARTMENT_VIEW' or 'DEPARTMENTVIEW', I still get 'no data found'. I did not expect to succedd with 'DEPARTMENT_VIEW' just like that, because it is the name of the view in the other schema (HR) hence I made the synomyn 'DEPARTMENTVIEW' pointing to it, which hasn't worked either.
    I tried this query :
    "SELECT table_name FROM user_tab_columns"
    I could see only the tables defined in my schema. This makes me wonder how I can run a query against 'USER_TAB_COLUMNS' for a SYNONYM as the table_name, when 'USER_TAB_COLUMNS' has no entry for any of my SYNONYMS in the first place ??
    Based on what Ignacio Ruiz said :
    'you need to query ALL_SYNONYMS if you want to resolve DEPARTMENTVIEW'I tried this query :
    "SELECT table_owner, table_name FROM ALL_SYNONYMS WHERE synonym_name = 'DEPARTMENTVIEW'"
    and got the record, but I don't know how to merge this result to a query on 'USER_TAB_COLUMNS' to get the
    column_name, data_type, data_length, data_precision, data_scale, nullable etc for the said 'DEPARTMENTVIEW'.
    Please what else can I try. Thanks alot.

  • T61P XP/SP3 - Power Manager Problems, Can't save schemes, limited schemes available

    Hi All - When I got this -rockin'- laptop originally I could set my own power schemes without problem.  Now it won't save my new powerschemes.  I try to create one, finish the last step, and then the power scheme isn't in the dropdown.  I read somewhere on the Web that this may be related to SP3. 
    Also, the only Power Schemes I have access to are Video Playback and Maximum Performance.  I have tried uninstalling Power Manager and the associated DLL and then reinstalling, but that didn't help.  Also, I see no reference to this problem in troubleshooting.  Thanks in advance.  This is getting really annoying as I like to use as little power as possible since I use teh computer on battery power quite often.
    Thanks!  g- 
    Solved!
    Go to Solution.

    First, don't mark an item solved if it's not solved. Second, learn to search to see if others have had this problem. instead of repeating a post that's been beaten to death. Hint: Lots of us have had the problem .
    If you had searched you would have found this link: http://chris.brandlehner.at/Brandlehner/cab_blog.nsf/d6plinks/CBRR-6YWBNV where you will see a possible solution. If it works, you can mark the entry "solved". Good luck.
    T520 4239-CTO
    T61/p 6459-CTO (Gone but not forgotten)
    A31/p XP Pro 1 gig memory
    A30/p XP Pro 1 gig memory
    TP600 Win 2K 288 mb memory
    701C Win 98 Don't ask

  • Schema to Schema replication

    Hi,
    We have a kind of requirement where we have 2 exact schema's with some 450 tables (on same database). Now whenever there is any insert/update/delete on schema1.table1 then same changes should be applied on schema2.table1 (same database)... The difference between 2 schema is that there is one extra column in all tables of schema1 which should not be available on schem2 tables.
    The thing that we can do is to write a trigger for each 450 tables... but i don't think that would be the best solution.. can someone please suggest what could be the better way to implement this..?
    Thanks and Regard!

    bLaK wrote:
    Hi,
    We have a kind of requirement where we have 2 exact schema's with some 450 tables (on same database). Now whenever there is any insert/update/delete on schema1.table1 then same changes should be applied on schema2.table1 (same database)... The difference between 2 schema is that there is one extra column in all tables of schema1 which should not be available on schem2 tables.
    The thing that we can do is to write a trigger for each 450 tables... but i don't think that would be the best solution.. can someone please suggest what could be the better way to implement this..?
    CREATE VIEW -- leaving out the one column
    repeat 450 times & no data needs to be duplicated

  • Setting default schema with Schema Select extension

    Has anyone tried to do this? The web site says to put the default schema name in square brackets at the end of the connection name. When I try to do that, SQL Developer says that square brackets are illegal characters for a conneciton name.
    In essence I want to have users log in with their own individual accounts, but have their schema context automatically set to a different schema.

    You'll need to contact the extension provider directly for support.
    You could achieve the same result with a trigger - and you'd have more control over when this happened, what applications, etc.
    If you want bracketed connection names, you'll need to run an older version of SQL Developer or manually edit the connections.xml file to add the brackets to the name.
    Edited by: Jeff Smith SQLDev PM on Apr 24, 2013 10:43 AM

  • XML Schema - DB Schema: Tool needed

    I'm looking for a tool that can automate the creation of new db structures to accomodate incoming data as specified in XML Schema documents.
    I have done some research on this and seen a few references to tools that sound related, but I have been unable to confirm that they are what I'm looking for ("XML Schema API" and the XML Schema Processor).
    Please point me to tools from Oracle or other parties that can handle this. We are currently running 8i, probably soon to include 9iAS.

    I'm still looking for tools like this. I've seen posts from Steven Muench where he indicates that such things have been planned (he was drawing a contrast to DTD's).
    Please help!

  • Export schema - Import Schema ... fails on sequence

    Hi.
    I'm doing an schema export on 10.1.0.2 and then import of the same schema in 10.2.0.3.
    Everything works fine, except the sequences.
    I'll get the following error on ALL sequences while doing the import
    CREATE SEQUENCE "JACTNG"."SQ_AGENT" MINVALUE 1 MAXVALUE 1,00000000000000E+27 INCREMENT BY 1 START WITH 10 NOCACHE NOORDER NOCYCLE
    ORA-39083: Object type SEQUENCE failed to create with error:
    ORA-00933: SQL command not properly ended
    What could be the reason?

    Exactly! NOW.
    So, as usual, you didn't analyse the problem at hand at all, not even the obvious step of repeating the affected command in a sql*plus session to isolate whether it is a generic problem or a specific imp problem. You didn't post you were using expdp and impdp, you just DUMPED the error, in order to have someone else doing your work for free.
    If you need someone else to do your work, especially as you have a CSI, please go to Metalink. At least the analysts over there are getting paid to do the research you refuse to do. Apart from that: entering the error messages during SR entry would have provided a correct solution.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • ITunes Store Rentals and Time Machine

    I tried out an iTunes store rental and it worked just fine, downloaded, watched it, and from my music folder on my hard drive it was deleted after 24 hrs. I took a look in Time machine, and the 1.5 GB file is still on my Time machine backup. I tired

  • How do i transfer content from a samsung to an iphone 5s

    how do i transfer content from a samsung to an iphone 5s

  • Ask for help

    Hi, I'm currently writing a network program similar to "Fastest Finger" in "Who wants to be a Millionaire". I can get the questions (and answers which is hidden from player's view) from server which is in correct order. However these selections are d

  • Switch to mac's now?

    My sister is a windows person. She has a Dell desktop that needs replacing. She is considering a MAC. Now i am reading here about problems with the imac monitor's (flickering screens, and yellowing tinge) Has apple been able to resolve these problems

  • How to find a t.code which calls a certain program?

    Hi All, could anyone tell me if ther's a way to find a t.code which calls a certain program? Such as, I'd like to know if ther's a t.code linked to the program RFEBKA96 Thanks Gandalf