Insert into various databases

Yes,

I have not tried this in oracle. I know that this is possible in SQL Server, what would you say in Oracle.

I have two databases DB1 and Db2 with a table emp.

now, I am connected to Db1 and

I can give an insert as

Insert into DB2. SCOTT. EMP (number, NAME) values (1, 'james');

I can do all operations connected to Db1 dml and DML operations in DB1.
This will be possible in oracle.

I hope that you have the privileges of dml appropriate to insert in this table.

Kind regards.

LOULOU.

Tags: Database

Similar Questions

  • CFIF to the boxes being inserted into the database field car_make.

    Hello, I need help on CFIF for the boxes being inserted into the database field car_make.

    At this point, several values is inserted in the car_make field. I would like to only have one value depending on what is checked in the box.

    Thank you

    Here's what I mean. I would like to know if it is is not clear.

    CFIF
    If Honda is checked then Honda value is inserted in the field car_Make

    If if Toyota is checked then Toyota value is inserted in the field car_Make


    If If Subaru is checked then Subaru value is inserted in the field car_Make


    You CAN, of course, but not without being fluent in javascript. Is there a particular reason you want to use checkboxes versus radio buttons?

    From an interface point of view, its generally not a good idea to change the behaviours expected of HTML form elements. If users see an option button, they assume generally that it will allow only 1 choice. If they are presented with a box, they could very easily be expected they could select more than 1.

  • How to filter the form entries before inserting into the database?

    Hello Adobe Forums,

    This is my first post and im a beginner with dreamweaver. I have created two forms on my site, one for messages (contact form) and the other for the testimony. I used the server behavior record insert to insert the record into the database, and then display the record in my administration area. What I want to do is to make sure that nobody can put the code in one of the entries, and if they do then to strip out code before its insertion in the database. Anyone know how I can do this? I'm not a coder I just use dreamweavers Insert menu, but I can change the code if somone told me what to do and where.

    Thanks in advance

    Dang - sorry-

    foreach ($_POST as $key-online $value) {}

  • old code stops to be inserted into a database

    I have a few lines of simple code that stopped working after that server has been upgraded to new Microsoft server.  The database is Access 2010.

    The error code is 500 and the syntax is not good.  I tried to change the alternate < cfinsert > option but it still does not.  I also tried to set the variables inside primes ("#xxx #")

    < cfquery datasource = "pcrsp" name = "Addrecord" >
    INSERT INTO ANNPLANREP (objectiveID, ProjectID, year)
    VALUES (#objectiveID #, #ProjectID #, #Year #)
    < / cfquery >

    The code has worked without problem for years what happens?  Any code that works successfully with this table updates the records.

    Any ideas?

    Tim

    Another possibility is the "year" can be a reserved keyword. In which case it must be escaped when used as an object name. To escape the name of column, add square brackets around it IE [year].  Although using keywords reserved as object names is generally not recommended. So if this is indeed the problem, you may consider rename the column instead.

    Post edited by: == cfSearching == -.

  • Error when trying to insert data into a database through a mediator

    I build a simple project on 11g TP$, which consists of a mediator, a file adapter, that reads an xml file and a DB adapter that inserts data in a database.
    The mediator connects to the file adapter and the DB adapter through a routing rule that it inserts the data in a table in the database.
    When I try to run this project, the input file is consumed by the adapter file, but after I get the following error



    SEVERE: Part {body} returns a null value in the message: in
    December 5, 2008 14:24:55 oracle.tip.mediator.service.transformation.XSLTransformer getPartDocument
    SEVERE: message load useful map source: {opaque=oracle.xml.parser.v2.XMLElement@19b0076}
    December 5, 2008 14:24:55 oracle.tip.mediator.service.transformation.MediatorTransformationHandler transform
    SERIOUS: Failure of Transformation
    oracle.tip.mediator.infra.exception.MediatorException: error occurred by transforming the payload!
    Please see the load XSL or source. Contact the Oracle Support if error not repairable
    at oracle.tip.mediator.service.transformation.XSLTransformer.getPartDocument (XSLTransformer.java:191)
    at oracle.tip.mediator.service.transformation.XSLTransformer.transform (XSLTransformer.java:102)
    at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform (MediatorTransformationHandler.java:103)
    at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform (MediatorTransformationHandler.java:196)
    at oracle.tip.mediator.service.DataActionHandler.getNextPayload (DataActionHandler.java:145)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess (BaseActionHandler.java:74)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess (BaseActionHandler.java:53)
    at oracle.tip.mediator.service.OneWayActionHandler.oneWayRequestProcess (OneWayActionHandler.java:67)
    at oracle.tip.mediator.service.OneWayActionHandler.process (OneWayActionHandler.java:34)
    at oracle.tip.mediator.service.ActionProcessor.onMessage (ActionProcessor.java:61)
    at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase (MessageDispatcher.java:103)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase (InitialMessageDispatcher.java:465)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases (InitialMessageDispatcher.java:361)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases (InitialMessageDispatcher.java:254)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch (InitialMessageDispatcher.java:149)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process (MediatorServiceEngine.java:533)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post (MediatorServiceEngine.java:634)
    at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:138)
    at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:152)
    at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy70.post (Unknown Source)
    at oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB.onMessage (AdapterServiceMDB.java:574)
    at oracle.integration.platform.blocks.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage (MessageEndpointImpl.java:295)
    at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:2127)
    at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:1719)
    at oracle.tip.adapter.file.inbound.ProcessWork.translateAndPublish(ProcessWork.java:677)
    at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:320)
    at oracle.integration.platform.blocks.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.integration.platform.blocks.adapter.fw.common.ThreadPool.run(ThreadPool.java:283)
    at java.lang.Thread.run(Thread.java:595)
    December 5, 2008 14:24:55 oracle.tip.mediator.serviceEngine.MediatorServiceEngine process
    GRAVE: update flaw treatment metric DMS
    December 5, 2008 14:24:55 oracle.tip.mediator.serviceEngine.MediatorServiceEngine process
    GRAVE: Got an exception: error occurred by transforming the payload!
    Please see the load XSL or source. Contact the Oracle Support if error not repairable
    oracle.tip.mediator.infra.exception.MediatorException: error occurred by transforming the payload!
    Please see the load XSL or source. Contact the Oracle Support if error not repairable
    at oracle.tip.mediator.service.transformation.XSLTransformer.getPartDocument (XSLTransformer.java:191)
    at oracle.tip.mediator.service.transformation.XSLTransformer.transform (XSLTransformer.java:102)
    at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform (MediatorTransformationHandler.java:103)
    at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform (MediatorTransformationHandler.java:196)
    at oracle.tip.mediator.service.DataActionHandler.getNextPayload (DataActionHandler.java:145)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess (BaseActionHandler.java:74)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess (BaseActionHandler.java:53)
    at oracle.tip.mediator.service.OneWayActionHandler.oneWayRequestProcess (OneWayActionHandler.java:67)
    at oracle.tip.mediator.service.OneWayActionHandler.process (OneWayActionHandler.java:34)
    at oracle.tip.mediator.service.ActionProcessor.onMessage (ActionProcessor.java:61)
    at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase (MessageDispatcher.java:103)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase (InitialMessageDispatcher.java:465)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases (InitialMessageDispatcher.java:361)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases (InitialMessageDispatcher.java:254)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch (InitialMessageDispatcher.java:149)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process (MediatorServiceEngine.java:533)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post (MediatorServiceEngine.java:634)
    at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:138)
    at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:152)
    at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy70.post (Unknown Source)
    at oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB.onMessage (AdapterServiceMDB.java:574)
    at oracle.integration.platform.blocks.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage (MessageEndpointImpl.java:295)
    at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:2127)
    at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:1719)
    at oracle.tip.adapter.file.inbound.ProcessWork.translateAndPublish(ProcessWork.java:677)
    at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:320)
    at oracle.integration.platform.blocks.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.integration.platform.blocks.adapter.fw.common.ThreadPool.run(ThreadPool.java:283)
    at java.lang.Thread.run(Thread.java:595)
    December 5, 2008 14:24:55 oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl Journal
    GRAVE: JCABinding = > ReadAdapter Service read could not perform the sending of an incoming message to the composite due to: oracle.tip.mediator.infra.exception.MediatorException: error occurred by transforming the payload!
    Please see the load XSL or source. Contact the Oracle Support if error not repairable
    December 5, 2008 14:24:55 oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl Journal
    GRAVE: JCABinding = > read
    oracle.fabric.common.FabricInvocationException: oracle.tip.mediator.infra.exception.MediatorException: error occurred by transforming the payload!
    Please see the load XSL or source. Contact the Oracle Support if error not repairable
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process (MediatorServiceEngine.java:599)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post (MediatorServiceEngine.java:634)
    at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:138)
    at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:152)
    at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy70.post (Unknown Source)
    at oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB.onMessage (AdapterServiceMDB.java:574)
    at oracle.integration.platform.blocks.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage (MessageEndpointImpl.java:295)
    at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:2127)
    at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:1719)
    at oracle.tip.adapter.file.inbound.ProcessWork.translateAndPublish(ProcessWork.java:677)
    at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:320)
    at oracle.integration.platform.blocks.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.integration.platform.blocks.adapter.fw.common.ThreadPool.run(ThreadPool.java:283)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.tip.mediator.infra.exception.MediatorException: error occurred by transforming the payload!
    Please see the load XSL or source. Contact the Oracle Support if error not repairable
    at oracle.tip.mediator.service.transformation.XSLTransformer.getPartDocument (XSLTransformer.java:191)
    at oracle.tip.mediator.service.transformation.XSLTransformer.transform (XSLTransformer.java:102)
    at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform (MediatorTransformationHandler.java:103)
    at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform (MediatorTransformationHandler.java:196)
    at oracle.tip.mediator.service.DataActionHandler.getNextPayload (DataActionHandler.java:145)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess (BaseActionHandler.java:74)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess (BaseActionHandler.java:53)
    at oracle.tip.mediator.service.OneWayActionHandler.oneWayRequestProcess (OneWayActionHandler.java:67)
    at oracle.tip.mediator.service.OneWayActionHandler.process (OneWayActionHandler.java:34)
    at oracle.tip.mediator.service.ActionProcessor.onMessage (ActionProcessor.java:61)
    at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase (MessageDispatcher.java:103)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase (InitialMessageDispatcher.java:465)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases (InitialMessageDispatcher.java:361)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases (InitialMessageDispatcher.java:254)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch (InitialMessageDispatcher.java:149)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process (MediatorServiceEngine.java:533)
    ... 24 more

    December 5, 2008 14:24:55 oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl Journal
    WARNING: JCABinding = > ReadonReject reading: the adapter resources 'file' asked a malformed incoming message processing. However, the following Service property has not been set: "rejectedMessageHandlers." Please define and redeploy the module. Will use the default rejection file://jca \Read\rejectedMessages directory at the moment.
    December 5, 2008 14:24:55 oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl Journal
    WARNING: JCABinding = > ReadonReject reading: Send incoming message invalid to the exception handler:
    December 5, 2008 14:24:55 oracle.tip.mediator.common.error.ErrorMessageEnqueuer$ EnqueuerThread run
    CRITICAL: Doesn't have a queue error message
    javax.jms.TransactionInProgressException: cannot call commit on a JMS session capable XA.
    at oracle.j2ee.ra.jms.generic.RAUtils.make(RAUtils.java:595)
    at oracle.j2ee.ra.jms.generic.RAUtils.toTransactionInProgressException(RAUtils.java:846)
    at oracle.j2ee.ra.jms.generic.RAUtils.toTransactionInProgressException(RAUtils.java:840)
    at oracle.j2ee.ra.jms.generic.SessionWrapper.commit(SessionWrapper.java:197)
    to oracle.tip.mediator.common.error.ErrorMessageEnqueuer$ EnqueuerThread.run (ErrorMessageEnqueuer.java:187)
    at java.lang.Thread.run(Thread.java:595)

    I checked the .xsd file and my xml several times and it seems that they are correct. In addition, the .xsl file is also correct.
    Does anyone have an idea of what can produce this problem?

    Thank you

    I was finally able to get my project work. Heidi - you were right, there was a problem with the XSL generated the XSL map editor.
    I'm trying to locate if this issue has already been reported, but I'm pointing out here, in case someone else has to face the same.

    The generated XSL was as follows:

    < xsl: stylesheet version = "1.0".
    xmlns:DVM = "[http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue]".
    xmlns:bpws = "[http://schemas.xmlsoap.org/ws/2003/03/business-process/]".
    xmlns:ns1 = "[http://xmlns.oracle.com/pcbpel/adapter/db/ReadEmps/Read/DB/]".
    xmlns:PLT = "[http://schemas.xmlsoap.org/ws/2003/05/partner-link/]".
    xmlns:ns0 = "[http://www.w3.org/2001/XMLSchema]."
    xmlns:HWF = "[http://xmlns.oracle.com/bpel/workflow/xpath]".
    xmlns:XP20 = "[http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20]".
    xmlns:xref = "[http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions]".
    xmlns:TNS = "[http://xmlns.oracle.com/pcbpel/adapter/file/ReadEmps/Read/Read/]".
    xmlns: xsl = "[http://www.w3.org/1999/XSL/Transform]."
    xmlns:ORA = "[http://schemas.oracle.com/xpath/extension]".
    xmlns: xsi = "[http://www.w3.org/2001/XMLSchema-instance]."
    ' xmlns:imp1 = ' [www.TargetNameSpace.com/EmpTrack |] ' http://www.targetnamespace.com/EmpTrack] * ' *.
    xmlns:top = "[http://xmlns.oracle.com/pcbpel/adapter/db/top/DB]".
    xmlns:IDs = "[http://xmlns.oracle.com/bpel/services/IdentityService/xpath]".
    xmlns:ORCL = "[http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc]".
    xmlns:MHDR = "[http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.GetRequestHeaderExtnFunction]".
    exclude-result-prefixes = "xsl plt ns0 ns1 imp1 tns superior dvm APO hwf xp20 Xref ora ID orcl mhdr" >
    < xsl: template match = "/" >
    < EmployeeTrackingCollection: top >
    < xsl: select for each * = "/ imp1:ROWSET / imp1:ROW *" >
    < EmployeeTracking: top >
    < top: locationId >
    < xsl: value-of select = "* imp1:LOCATION_ID *" / >
    < / top: locationId >
    < top: employeeId >
    < xsl: value-of select = "* imp1:EMPLOYEE_ID *" / >
    < / top: employeeId >
    < employeeX: top >
    < xsl: value-of select = "* imp1:EMPLOYEE_X *" / >
    < / high: employeeX >
    < upper: employeeY >
    < xsl: value-of select = "* imp1:EMPLOYEE_Y" * / >
    < / top: employeeY >
    < / high: EmployeeTracking >
    < / xsl: foreach >
    < / high: EmployeeTrackingCollection >
    < / xsl: template >
    < / xsl: stylesheet >

    The Xpath expression includes the "imp1:" tag to reference namespace. I tested this XSL and it did not work. However, on the removal of namespace ' imp1: ' the XPath, XSL works fine and I am able to insert into the database. "" Any appropriate driver "does not appear in the newspaper, but all lines of XML are inserted into the database.

    Heidi - do you think it is a bug?

  • INSERT INTO... SELECT FROM XMLTABLE()

    I'm trying to insert using a query to 11.2.0.3.  The table is defined as follows:

    CREATE TABLE book_master AS TABLE OF XMLTYPE XMLTYPE STORE AS SECUREFILE BINARY;
    

    The insert statement is structured in this way:

    INSERT INTO book_master
    SELECT
        t.invt_data
    FROM
        XMLTable(
            XmlNamespaces('http://www.mrbook.com/InventoryData' AS "invtdata", 
                      'http://www.mrbook.com/book' AS "book"),  
            '/book:BOOKS'
        PASSING ?
        COLUMNS
             invt_data XMLTYPE PATH 'invtdata:INVT_DATA'
        ) t;
    

    The parameter '?' is passed through JDBC.

    When I run the present, I get the error:

    Error report:
    SQL Error: ORA-19010: Cannot insert XML fragments
    19010. 00000 -  "Cannot insert XML fragments" 
    *Cause:    XML fragments got from extractNode cannot be inserted into the database.
    *Action:   Convert the fragment into a proper XML document before insertion.
    

    Is it possible to cast the XMLTYPE returned by XMLTable in a comprehensive document, instead of a node?

    Is it possible to cast the XMLTYPE returned by XMLTable in a comprehensive document, instead of a node?

    Well, the error message is pretty clear: you are trying to insert fragments, not a document (only root of content). It is not allowed.

    I guess that the query returns several items INVT_DATA, right?

    SQL > INSERT INTO book_master

    2. SELECT

    3 t.invt_data

    4

    (5) XMLTable

    6 ' / BOOKS»

    7 PASSAGE xmltype ('"")

    8 COLUMNS

    9 invt_data XMLTYPE PATH 'INVT_DATA '.

    (10) t;

    INSERT INTO book_master

    *

    ERROR on line 1:

    ORA-19010: cannot insert XML fragments

    We must build a document by encapsulating the fragments returned in a single root element.

  • Cannot insert data into the database

    Hello world

    I stuck with a problem in DB juice. When I try to insert data into the database using DB tool, I get a repeated error message (error 1). Please find the my vifile below and solve say.

    Problem is use Labiew 8.2. So try to answer accordingly

    Try it with a cluster instead of a string or an array.

  • I have a problem in direct charge of path where the default values are not met when using the CSV file to load into the database while his is filled everything in plain insert queries

    -The header of the control file, I added a load direct method(append mode)

    OPTIONS(direct=true,Parallel=true,skip_index_maintenance=true,skip_unusable_indexes=true)

    DATA RELATING TO SUNK COSTS

    ADD

    INSERT INTO TEST_TBL

    (

    col1,

    ...

    Col n-2

    );

    Try to use the classic path instead.  With the direct path, many constraints and triggers, and others are disabled.  Please see the next section of the online documentation.

    https://docs.Oracle.com/database/121/Sutil/GUID-973925DA-8F86-49C1-A707-4564DC3B57AE.htm#SUTIL1330

  • Insert data into another database with a script

    Hello.

    What is the best way to insert data into one database with a script

    INSERT INTO BF_PRUEBASMTP.bf_mtp_agr_inscription (ain_agreementid, ain_customerid, ain_paymethodsid, ain_servicemoduleid, referencia)

    SELECT AAG. AAG_AGREEMENTID, ACU. ACU_CUSTOMERID, 2, 2, ins. NUMERO_REFERENCIA

    OF BF_PRUEBASMTP.bf_mtp_agr_biller ABI

    JOIN IN-HOUSE

    BF_PRUEBASMTP. BF_MTP_AGR_AGREEMENT AAG ON ABI. ABI_BILLERID = AAG. AAG_BILLERID

    INNER JOIN 'CLIENTEUNICO. ALMUERZO" ins

    ON THE AAG. AAG_AGREEMENTID = ins. CONVENIOID

    INNER JOIN BF_PRUEBASMTP.bf_mtp_agr_customer ACU

    ON ACU.acu_typedocumentid = ins. TIPO_DOCUMENTO

    AND ACU.acu_numberid = ins. NUMERO_DOCUMENTO;

    CLIENTEUNICO. INSCRIPCIONES = SELECT * DE INSCRIPCIONES - to a DIFFERENT DATABASE


    Thank you very much.

    2931095 wrote:

    If I don't have permissions to create a database link. Is there another way to do this?

    Thank you.

    link to database IS the method by which an Oracle database accesses to a different database.

    If you are the ADMINISTRATOR, you should have permission.

    If you are not the ADMINISTRATOR, you should not have permission and need to talk to the ADMINISTRATOR that is allowed.

  • Dreamweaver server behaviors, can not insert data into the database

    Hi, I tried to use server behaviors to add registration information in my database in my registration page.

    (1) that I created a login page, and it works very well. This means that connections and the connection works fine database so it can match the record in my database.

    (2) but when I tried to download the news in the form of database, it does not work. When I clicked on the service behavior to double check the action "insert data", it always jumps the error message: "When executing inspectserverbehavior in InsertRecord.htm, a javascript error occurred."

    I copied my code below. Except the form code and a little jquery is written by me, most of the code generated by Dreamweaver.

    <? php require_once('Connections/MAMPPRO.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "Register_Form")) {}

    $insertSQL = sprintf ("INSERT INTO"user identity"(Ui_LastName, Ui_Email, Ui_FirstName, Ui_Password) VALUES (%s, %s, %s %s)", ")

    GetSQLValueString ($_POST ['Register_Firstname'], "text").

    GetSQLValueString ($_POST ['Register_Lastname'], "text").

    GetSQLValueString ($_POST ['Register_Email'], "text").

    GetSQLValueString ($_POST ['Register_Password'], "text"));

    @mysql_select_db ($database_MAMPPRO, $MAMPPRO);

    $Result1 = mysql_query ($insertSQL, $MAMPPRO) or die (mysql_error ());

    $insertGoTo = "LoginSuccessful.php";

    If (isset {}

    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;

    $insertGoTo. = $_SERVER ['QUERY_STRING'];

    }

    header (sprintf ("location: %s", $insertGoTo));

    }

    @mysql_select_db ($database_MAMPPRO, $MAMPPRO);

    $query_Recordset1 = "SELECT *"IDENTITY of the user;"

    $Recordset1 = mysql_query ($query_Recordset1, $MAMPPRO) or die (mysql_error ());

    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    $totalRows_Recordset1 = mysql_num_rows ($Recordset1);

    ? >

    <! doctype html >

    < html >

    < head >

    < meta charset = "UTF-8" >

    Registeration < title > < / title >

    "< link href="jquery-mobile/jquery.mobile-1.3.0.min.css "rel ="stylesheet"type =" text/css">

    "< script src="jquery-mobile/jquery-1.8.3.min.js "type =" text/javascript"> < / script >

    "< script src="jquery-mobile/jquery.mobile-1.3.0.min.js "type =" text/javascript"> < / script >

    < / head >

    < body >

    < div data-role = 'page' id = "registrationpage" >

    < div data-role = "header" >

    < h1 > welcome!    < / h1 >

    < h1 > register yourself! < / h1 >

    < / div >

    < data-role = 'content' div > < / div >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "POST" id = "Register_Form" name = "Register_Form" >

    < p >

    < label > Email < / label >

    < input name = "Register_Email" type = "email" required id = form register_email = "Register_Form" title = "Register_Email" >

    < label > < br >

    Password < / label >

    < input name = "Register_Password" type = "password" required id = form register_password = "Register_Form" title = "Register_Password" value = "" >

    < /p >

    < p >

    < label > name < / label >

    < input name = "Register_Lastname" type = "text" required id = form register_lastname = "Register_Form" title = "Register_lastname" value = "" >

    < label > < br >

    First name < / label >

    < input name = "Register_Firstname" type = "text" required id = form register_firstname = "Register_Form" title = "Register_Firstname" value = "" >

    < /p >

    < name of entry = "MM_insert" type = 'submit' form 'Register_Form' value = 'Registration' = >

    < input type = "hidden" name = "MM_insert" value = "Register_Form" >

    < / make >

    < a href = "index.php" data-role = "button" > return to connection < /a > "

    < div data-role = "footer" >

    footer < h4 > < / h4 >

    < / div >

    < / div >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($Recordset1);

    ? >

    Finally I found the problem.

    It seems in my setting, MAIL does not work in live mode DW. But if moved to any explores, it works fine.

    Adobe really needs to improve its management of PHP.

  • How to insert data into the database using smartview

    Hello
    I am trying to insert data into the database using * "Send data" * button on the Ribbon of Essbase.
    My database is empty.

    I opened an ad hoc network, it returns * "#missing" * in all cells
    I have modified the cells and provided data in the cells that I want to. Now, I supported on * "Send data" * button.
    It just reloaded the adhoc grid instead of submit data, I rechecked the data through data console Administrative Service are not inserted.

    I am following the right way to insert data? If not, could you please suggest me how (Populate) insert default data in the database?

    --
    VINET

    You go about it the right way, once you have submitted if you réactualisiez then data values should be there, if you POV is against members of dynamic calc and then data not written to the database, you need to check the Member properties of your POV.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Values are inserted into a SQL PL table to a database table

    Hello

    Here's my dilemma.

    I have values inserted into a pl sql table which I have collected from a web page. Now, I need to add these values in a database table. I see the values as 1-'AA', 2 = 'BB' etc.

    I use the following code to insert into a table outside in the database, and it seems to be crashing.

    for me in app_table.first... loop app_table. Last
    r_convention (i) .priority_country_code: = app_table (i);

    insert into test_countries
    values (test_seq, tion (i) .r_convention (i) .priority_country_code);

    commit;

    end loop;
    When I run this code, I see the values. But he goes to the first value and then crashes and does not pass by the
    the rest of the values. What I'm missing here?

    Thank you!

    and move the validation outside of the loop :-)

  • Insert some values into the database of field boxes




    I had a similar probem and error when you use the drop-down list instead of a checkbox. It was solved by putting the SELECT name = "CarMake in the menu dropdown.

    But in the box, I don't know?
    I seem that the problem is the action page has the Form.carmake, but the page does not work. What Miss me and where should I put in the entry below page.


    The main objective is to have checked checkboxes to insert some values into the database field carmake based on what is checked.


    If the Honda checkbox is checked then
    It inserts into the carmake field value Honda.

    If the Toyota checkbox is checked then
    It inserts into the carmake field the value of Toyota.

    If both are true then 2 rows are inserted two values
    Honda and Toyota.

    Ditto for the last option.

    Thanks for your help


    Here's the error again

    error:
    Error occurred while processing request
    CARMAKE element is not defined in the FORM.

    12:21:50.050 - term Exception - in C:\CFusionMX7\wwwroot\Author\CarAddAction.cfm: line 16
    CARMAKE element is not defined in the FORM.

    line 16 is:
    "#Trim (Form.carmake), #
    Join the Code


    <! - Here is the form - >
    < html >
    < head >
    < / head >

    < body >


    < h1 > < / h1 >

    < table >
    < action = "CarAddAction.cfm cfform" method = "POST" > "
    < b >
    < td > Honda: < table >
    < td > < Center > < input type = "checkbox" name = "HONDA_MODEL" value = "HONDA" checked > < / center > < table >
    < /tr >
    < b >
    < td > Toyota: < table >
    < td > < Center > < input type = "checkbox" name = "Toyota_MODEL" value = "Toyota" Unchecked > < / center > < table >
    < /tr >
    < b >
    < td > SUBARU: < table >
    < td > < Center > < input type = "checkbox" name = "SUBARU_MODEL" value = "SUBARU" unchecked > < / center > < table >
    < /tr >



    < Tr > < td > < table > Honda model
    < td >
    < input type = "Text".
    name = "Honda_Model".
    Value =""
    size = "22".
    MaxLength = "20" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Toyota model
    < td >
    < input type = "Text".
    name = "Toyota_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Subaru model
    < td >
    < input type = "Text".
    name = "Subaru_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < td > < table >
    < td >
    < input type is 'submit' value is "Take Add to database" >
    < table >
    < /tr >

    < / cfform >
    < /table >

    < / body >
    < / html >



    <!-action page
    --------->
    < cfdump var = "#form #" >
    < name cfquery = "InsertCarInfo."
    DataSource = "#request. MainDSN #">"
    INSERT INTO Car_tab)
    car_Make,
    Honda_Model,
    Toyota_Model,
    Subaru_Model

    )
    VALUES)

    "#Trim (Form.carmake), #
    "#Trim (Form.Honda_Model), #
    "#Trim (Form.Toyota_Model), #
    "#Trim (Form.Subaru_Model) #
    )
    < / cfquery >

    You check in one or more of the boxes before continuing? Remember what I said about the form field box existing only on the page of treatment at least 1 or more checkboxes are checked on your form. Make sure you use to avoid this problem.

    What happens when you take a look at the output of your dump of form? Your fields are present?

  • Insert into a primary database of Eve Active Data Guard

    I use Oracle EE 11.2.0.3.8 on Solaris 10.

    I read that it is possible to do an insert in my database for the standby Active Data Guard by redirecting the insert to get on the primary via DB link.  I GLOBAL_NAMES set to TRUE and he needs to stay that way.  This means that I can't create a DB link pointing to my first as such:

    CREATE DATABASE LINK PROD. WORLD WITH THE HELP OF "PROD_PRIM";

    How can I get around this in order to insert data in my standby ADG primary?

    Hello;

    There is an article about it here by Uwe Hesse:

    http://uhesse.files.WordPress.com/2012/03/realtimequery.PDF

    I understand that if GLOBAL_NAMES is true, then, the database link must have the same name as the database in which it connects.

    Best regards

    mseberg

  • Insert data into a database with foreign key...

    So I recently learned how to use oracle and am doing my first DB, I created the tables and added constraints, now I am trying to add data in my takes but I'm getting errors, below I listed all my tables, then the data im trying to insert followed by error messages. Please can somebody translate my error messages in plain English and tell me how to fix... Thank you

    Ollie!


    HERE'S OUR TABLES.

    CREATE TABLE 'ASSESMENT_TYPE '.
    (VARCHAR2 (15) 'ASSESMENT_TYPE',)
    VARCHAR2 (70) "ASSESMENT_DESCRIPTION."
    ENABLE 'ASSESMENT_TYPE_PK' CONSTRAINT PRIMARY KEY ('ASSESMENT_TYPE')
    )

    CREATE TABLE 'COURSES '.
    (NUMBER OF 'COURSE_NO',
    VARCHAR2 (30) "COURSE_NAME."
    DATE OF THE "COURSE_START_DATE."
    DATE OF THE "COURSE_END_DATE."
    NUMBER OF "TOTAL_UNITS."
    NUMBER OF "COURSE_COORDINATOR_STAFF_NO."
    NUMBER OF "TOTAL_COURSE_COST."
    NUMBER OF "THIRD_PARTY_SUPPLIER_NO."
    ACTIVATE THE KEY PRIMARY CONSTRAINT 'COURSE_PK' ('COURSE_NO'),
    "COURSE_CON_FK' FOREIGN KEY ('COURSE_COORDINATOR_STAFF_NO') CONSTRAINT
    ACTIVATE THE REFERENCE 'EMPLOYEE' ('EMPLOYEE_NO'),
    "THPARTY_SUPPLIER_FK' FOREIGN KEY ('THIRD_PARTY_SUPPLIER_NO') CONSTRAINT
    SELECT REFERENCES "THIRD_PARTY_SUPPLIER" ("THIRD_PARTY_SUPPLIER_NO")
    )

    CREATE TABLE 'COURSE_OUTCOME '.
    (VARCHAR2 (5) 'COURSE_OUTCOME',)
    VARCHAR2 (25) "COURSE_OUTCOME_DESCRIPTION."
    ENABLE 'COURSE_OUTCOME_PK' CONSTRAINT PRIMARY KEY ('COURSE_OUTCOME')
    )

    CREATE TABLE 'DEPARTMENT '.
    (NUMBER OF 'DEPARTMENT_NO',
    VARCHAR2 (50) "DEPARTMENT_NAME."
    VARCHAR2 (150) "DEPARTMENT_LOCATION."
    NUMBER OF "DEPT_MANAGER_NO."
    ACTIVATE THE KEY CONSTRAINT PRIMARY "DEPARTMENT_PK" ("DEPARTMENT_NO'),
    "DEPTMANNO_FK' FOREIGN KEY ('DEPT_MANAGER_NO') CONSTRAINT
    SELECT REFERENCES 'EMPLOYEE' ('EMPLOYEE_NO')
    )
    CREATE TABLE 'EDUCATIONAL_INSTITUTION '.
    (VARCHAR2 (100) 'SCHOOL_UNIVERSITY_NAME',)
    VARCHAR2 (200) "SCHOOL_UNIVERSITY_ADDRESS."
    ENABLE 'EDUCATIONAL_INSTITUTION_PK' CONSTRAINT PRIMARY KEY ('SCHOOL_UNIVERSITY_NAME')
    )
    CREATE TABLE 'EMPLOYEE '.
    (NUMBER OF 'EMPLOYEE_NO',
    VARCHAR2 (50) "EMPLOYEE_NAME"
    VARCHAR2 (150) "EMPLOYEE_ADDRESS."
    VARCHAR2 (50) "JOB_DESCRIPTION."
    'STATUS' VARCHAR2 (15).
    'START_DATE' DATE,
    NUMBER OF "SALARY_CODE."
    NUMBER OF "SUPERVISOR_EMPLOYEE_NO."
    NUMBER OF "DEPARTMENT_NO,"
    ACTIVATE THE KEY PRIMARY CONSTRAINT 'EMPLOYEE_PK' ('EMPLOYEE_NO'),
    "SALARYCODE_FK' FOREIGN KEY ('SALARY_CODE') CONSTRAINT
    ACTIVATE THE REFERENCE 'SALARY' ('SALARY_CODE'),
    "SUPEMNO_FK' FOREIGN KEY ('SUPERVISOR_EMPLOYEE_NO') CONSTRAINT
    ACTIVATE THE REFERENCE 'EMPLOYEE' ('EMPLOYEE_NO'),
    "EMDEPNO_FK' FOREIGN KEY ('DEPARTMENT_NO") CONSTRAINT
    ACTIVATE THE 'DEPARTMENT' ('DEPARTMENT_NO") REFERENCES
    )
    CREATE TABLE 'EMPLOYEE_COURSE_OUTCOME '.
    (NUMBER OF 'EMPLOYEE_NO',
    NUMBER OF "COURSE_NO."
    VARCHAR2 (5) "COURSE_OUTCOME_CODE."
    NUMBER OF "COURSE_EMPLOYEE_MARK."
    ACTIVATE 'EMPLOYEE_COURSE_OUTCOME_PK' CONSTRAINT PRIMARY KEY ('EMPLOYEE_NO', 'COURSE_NO'),
    "EM_FK' FOREIGN KEY ('EMPLOYEE_NO') CONSTRAINT
    ACTIVATE THE REFERENCE 'EMPLOYEE' ('EMPLOYEE_NO'),
    "EMPLOYEE_COURSE_FK' FOREIGN KEY ('COURSE_NO') CONSTRAINT
    ACTIVATE THE REFERENCE 'COURSES' ('COURSE_NO'),
    "EMPLOYEE_COURSE_OCODE_FK' FOREIGN KEY ('COURSE_OUTCOME_CODE') CONSTRAINT
    SELECT REFERENCES "COURSE_OUTCOME" ("COURSE_OUTCOME")
    )
    CREATE TABLE 'EMPLOYEE_COURSE_UNIT_OUTCOME '.
    (NUMBER OF 'EMPLOYEE_NO',
    NUMBER OF "COURSE_NO."
    NUMBER OF "UNIT_NO."
    VARCHAR2 (5) "UNIT_OUTCOME_CODE."
    NUMBER OF "EMPLOYEE_UNIT_MARK."
    ACTIVATE 'EMPLOYEE_CUO_PK' CONSTRAINT PRIMARY KEY ('EMPLOYEE_NO', 'COURSE_NO', 'UNIT_NO'),
    "EMPCU_FK' FOREIGN KEY ('EMPLOYEE_NO') CONSTRAINT
    ACTIVATE THE REFERENCE 'EMPLOYEE' ('EMPLOYEE_NO'),
    CONSTRAINT 'EMCU-FK' FOREIGN KEY ('UNIT_NO')
    SELECT REFERENCES 'UNIT' ('UNIT_NO')
    )
    CREATE TABLE 'EMPLOYEE_CRS_UNIT_ASSESMENT '.
    (NUMBER OF 'EMPLOYEE_NO',
    NUMBER OF "COURSE_NO."
    NUMBER OF "UNIT_NO."
    VARCHAR2 (15) "ASSESMENT_TYPE."
    NUMBER OF "EMPLOYEE_ASSESMENT_MARK."
    ACTIVATE A KEY PRIMARY ('EMPLOYEE_NO', 'COURSE_NO', 'UNIT_NO') CONSTRAINT 'EMPLOYEE_CRS_PK '.
    )
    CREATE TABLE 'EMPLOYEE_QUALIFICATION '.
    (NUMBER OF 'EMPLOYEE_NO',
    VARCHAR2 (5) "QUALIFICATION_TYPE."
    'SUBJECT' VARCHAR2 (20).
    NUMBER OF "QUALITY."
    VARCHAR2 (100) "SCHOOL_UNIVERSITY_NAME."
    VARCHAR2 (50) "AWARDING_BODY."
    NUMBER OF "DATE_QUALIFICATION_OBTAINED."
    TURN ON THE PRIMARY CONSTRAINT "EMPLOYEE_QUALIFICATION_CON_PK" ("EMPLOYEE_NO", "QUALIFICATION_TYPE", "SUBJECT").
    "DEPTNO_FK' FOREIGN KEY ('EMPLOYEE_NO') CONSTRAINT
    ACTIVATE THE REFERENCE 'EMPLOYEE' ('EMPLOYEE_NO'),
    "EMQUALREF_FK' FOREIGN KEY ('QUALIFICATION_TYPE') CONSTRAINT
    ACTIVATE THE REFERENCE 'QUALIFICATION_TYPE' ('QUALIFICATION_TYPE'),
    "SCHUNINAME_FK' FOREIGN KEY ('SCHOOL_UNIVERSITY_NAME') CONSTRAINT
    SELECT REFERENCES "EDUCATIONAL_INSTITUTION" ("SCHOOL_UNIVERSITY_NAME")
    )
    CREATE TABLE 'QUALIFICATION_TYPE '.
    (VARCHAR2 (5) 'QUALIFICATION_TYPE',)
    VARCHAR2 (25) "QUALIFICATION_DESCRIPTION."
    ENABLE 'QUALIFICATION_TYPE_PK' CONSTRAINT PRIMARY KEY ('QUALIFICATION_TYPE')
    )
    CREATE TABLE 'WAGES. "
    (NUMBER OF 'SALARY_CODE',
    NUMBER OF "SALARY_AMOUNT."
    ENABLE 'SALARY_PK' CONSTRAINT PRIMARY KEY ('SALARY_CODE')
    )
    CREATE TABLE 'THIRD_PARTY_SUPPLIER '.
    (NUMBER OF 'THIRD_PARTY_SUPPLIER_NO',
    VARCHAR2 (100) "THIRD_PARTY_NAME."
    VARCHAR2 (100) "THIRD_PARTY_CONTACT_NAME."
    ENABLE 'THIRD_PARTY_SUPPLIER_PK' CONSTRAINT PRIMARY KEY ('THIRD_PARTY_SUPPLIER_NO')
    )
    CREATE TABLE "UNIT".
    (NUMBER OF 'UNIT_NO',
    VARCHAR2 (30) "UNIT_NAME"
    NUMBER (7.2) "UNIT_COST"
    ENABLE 'UNIT_PK' CONSTRAINT PRIMARY KEY ('UNIT_NO')
    )
    CREATE TABLE 'UNIT_OUTCOME '.
    (VARCHAR2 (5) 'UNIT_OUTCOME_CODE',)
    VARCHAR2 (25) "UNIT_OUTCOME_DESCRIPTION."
    ENABLE 'UNIT_OUTCOME_PK' CONSTRAINT PRIMARY KEY ('UNIT_OUTCOME_CODE')
    )
    NOW, WE TRY TO ENTER DATA.

    insert into values used (0002, "Mitch Vaughan', '145 a Green Street', 'Administrator', 'Active', December 1, 2010", 1,1,1 ");

    insert into values used (0001, "Ollie Marriott", "12 the Ghetto Street', 'Administrator', 'Active', 2 December 2010", 2,2,1);

    insert into values employee (0003, "Tim Reynolds, '12 Shoebury Way', 'Cleaner', ' Inactive', December 2, 2000, 3,0002,3);

    insert into values used (0004, "Tom Watson", ' 90 Seymour Road","Data Analyst","Active", December 10, 2008", 4 000 104 ");

    insert into values used (0005, "Wajj is', 125 hamlet Court ', 'Clean', 'Active', September 15, 2007", 5 000 105 ");

    insert into values used (0006, "Nathan Mann', '33 a Bushey Hill Road', 'Receptionist', 'Active'", December 2, 2010 ", 6 000 406);

    insert into values used (0007, "Tim DeLong', ' 34 Buena Vista Drive", "Receptionist", "Active", December 21, 2010 ', 7, 1, 06);

    NOW WE'RE GETTING THESE ERROR MESSAGES.

    Connected.
    SQL > insert into values used (0002, "Mitch Vaughan', '145 a Green Street', ' has)
    dministrator ', 'Active»(, 1er décembre 2010', 1,1,1);
    insert into values used (0002, "Mitch Vaughan', '145 a Green Street', ' administrative)
    strator ', 'Active', 1 December 2010 "(, 1,1,1).
    *
    ERROR on line 1:
    ORA-02291: integrity constraint (ISAD2. SALARYCODE_FK) violated - parent key not
    found


    SQL >
    SQL > insert into values used (0001, 'Ollie Marriott', ' 12 Ghetto Road', ' SMA)
    made ', 'Active»(, 2 décembre 2010', 2,2,1);
    insert into values used (0001, 'Ollie Marriott', ' 12 Ghetto Road', ' Directors)
    Rator ', 'Active»(, 2 décembre 2010', 2,2,1)'.
    *
    ERROR on line 1:
    ORA-02291: integrity constraint (ISAD2. SALARYCODE_FK) violated - parent key not
    found


    SQL >
    SQL > insert into values used (0003, 'Tim Reynolds, 12 Shoebury way', ' Clea)
    NER ","inactive»(, 2 décembre 2000', 3,0002,3);
    insert into values used (0003, "Tim Reynolds', ' 12 Shoebury Way", "Cleaner")
    ("Inactive", 2 December 2000', 3,0002,3)
    *
    ERROR on line 1:
    ORA-02291: integrity constraint (ISAD2. SALARYCODE_FK) violated - parent key not
    found


    SQL >
    SQL > insert into values used (0004, 'Tom Watson", ' 90 Seymour Road', ' data one)
    nalyst ","Active»(, 10 décembre 2008', 4 000 104);
    insert into values used (0004, 'Tom Watson", ' 90 Seymour Road', ' data Analys)
    t ', 'Active', December 10, 2008 "(, 4 000 104).
    *
    ERROR on line 1:
    ORA-02291: integrity constraint (ISAD2. SALARYCODE_FK) violated - parent key not
    found


    SQL >
    SQL > insert into values used (0005, 'Wajj is', ' 125 hamlet Court', ' Clean)
    St ', 'Active»(, 15 septembre 2007', 5 000 105);
    insert into values used (0005, "Wajj is', 125 hamlet Court ', 'Clean',')
    Active ", September 15, 2007"(, 5 000 105).
    *
    ERROR on line 1:
    ORA-02291: integrity constraint (ISAD2. SALARYCODE_FK) violated - parent key not
    found


    SQL >
    SQL > insert into values used (0006, "Nathan Mann', '33 a Bushey Hill Road', ')
    Receptionist ', 'Active', December 2, 2010 "(, 6 000 406);
    insert into values used (0006, "Nathan Mann', '33 a Bushey Hill Road', ' Recep)
    tionist ', 'Active»(, 2 décembre 2010', 6 000 406)'.
    *
    ERROR on line 1:
    ORA-02291: integrity constraint (ISAD2. SALARYCODE_FK) violated - parent key not
    found


    SQL >
    SQL > insert into values used (0007, "Tim DeLong', ' 34 Buena Vista Drive," ' R)
    Eceptionist ', 'Active»(, 21 décembre 2010', 7, 1, 06);
    insert into values used (0007, "Tim DeLong', ' 34 Buena Vista Drive," ' Recept)
    ionist ', 'Active»(, 21 décembre 2010', 7, 1, 06)'.
    *
    ERROR on line 1:
    ORA-02291: integrity constraint (ISAD2. SALARYCODE_FK) violated - parent key not
    found


    SQL >


    PLEASE HELP ME UNDERSTAND THIS! / / /

    Sounds like you have a problem with your tables. It should not be necessary to insert a "preliminary" to the employee record, and then eventually complete.
    Should not be possible. In your case, it is, for all columns is NULL allowed, which is really bad.

    In your case, it is necessary because you have a circular reference;

    Department of references used, which refers to employee. If you really want it to be like that, one of them should be DEFERRABLE (search)

    You need to go through all your tables, you seem to have missed additional / more than one foreign key.
    I proposed (all) in NOT NULL columns. At least give some thoughts to each column;
    'Should I a value here'-> NOT NULL
    "Do I always have value here"-> NOT NULL
    If it is in each case, perhaps that this cvolumn is not at this table. This could be the case for DEPARTMENT_MANAGER, which would also solve your circular reference.

    Do not use the NUMBER with any precision. Many point for example, 'COURSE_NO' NUMBER will it means it's a flutter. For example, use Number (38), personally I use 'always' NUMBER (13) for identifiers - this will insert in a Java int.

    Also, give thoughts to CHECK constraints, probably, he does not give meaning have a negative salaray, and so on.

    A good practice is to first create all tables, then all primary keys and finally all foreign keys. That decouple the tables, so no specific order of creation is necessary.

    When these changes have been made, then start by inserting tables which do not reference other tables and then take it from there, one table at a time.

    Concerning
    Peter

    Edit: One last thing, I don't get the need for a TREATMENT table. Think you should get rid of it.

    Published by: Peter on April 26, 2011 14:53

Maybe you are looking for

  • Why I have to click on e-mail, all messages, important, Inbox, folders?

    I have inbox, important, all mail and several cases, I created in my thunderbird account. Why should I click on the email even in all folders? If I look in my inbox should clearly as read in all categories, but thunderbird makes me click on each fold

  • Presario VT6210US drivers Win 7 X 64

    Presario VT6210US showing 2 Base system devices after the own insatll of Win 7 X 64. Hardware ID of the Device Manager: dev #1) PCI VEN_1180 & DEV_0843 & SUBSYS_30B7103C & REV_01 dev #2) PCI VEN_1180 & DEV_0592 & SUBSYS_30B7103C & REV_0A can anyone r

  • Windows Vista. How can I start/turn windows Defender

    You want to disable unwanted startup programs.  Have rebooted twice by computer.  Get "service stopped... problem caused the service to stop program.  To start the service, restart the computer... »

  • First elements 15 - it will be late?

    The last week of September has been a special week for Photoshop/Premier elements for several years.  We get to be surprised by what's new!It's always fun to speculate!  The week is half gone and the month ends soon!  It will be the end of this year?

  • How to increase the maximum size of the disk commissioning

    HelloI wanted to increase the size of the hard drive of one of our virtual machine but the maximum is 256 GB and I can't go any further. Is there a way to increase the maximum, so I can develop?We use ESXi 5.5 on a single physical server and use vSph