How to capture PKID after insert in Oracle

All--
Please help.
This is a general question about Oracle in general, in the hope that someone has solved this problem.
I want to capture the PKID after an insert into Oracle.
I expect that this is just a syntax issue.
I use DataAdapter.Update() passing in a DataTable.
It looks like...
...the trigger is using the sequence correctly...
...the PKID value is provided for insert correctly...
...the insert occurs correctly...
...the output parameter is set by the SP...
...and then the DataAdapter trys to fill the underlying DataTable's PKID column and thats where the problem occurs...
...so, I think,...
...either the cast from OracleType Number (from the SP) to DotNetType decimal (from the DataTable) is failing...
...or...
...for some unknown reason Oracle is actually passing <10007>, with the brackets included, after the insert and casting that to decimal fails... (but, this seems unlikely)...
...or...
...something else?
Any ideas?
(See below for details.)
...this is the error...
Code:
System.ArgumentException: System.InvalidCastException: Specified cast is not valid. at System.Convert.ToDecimal(Object value) at System.Data.Common.DecimalStorage.Set(Int32 record, Object value) at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <10007> in PKID Column. Expected type is Decimal. at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) at Oracle.DataAccess.Client.OracleDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.Update(DataTable dataTable) at DLSLOD.Private.Business.Entity._LodAccesscode.Save(OracleConnection p_OpenConnection) in c:\vsswap3\wadprojects\dls\dlslod_01\dlslod\private\business\entity\_lodaccesscode.cs:line 715 at DLSLODAdmin.TestLodAccesscode01.SaveNewRow_Click(Object sender, EventArgs e) in c:\vsswap3\wadprojects\dls\dlslod_01\dlslodadmin\testlodaccesscode01.aspx.cs:line 144
...and the SP looks like this...
Code:
CREATE OR REPLACE PROCEDURE LOD_ACCESSCODE_INS
P_PKID OUT LOD_ACCESSCODE.PKID%TYPE,
P_DEPT_PKID IN LOD_ACCESSCODE.DEPT_PKID%TYPE,
P_NAME IN LOD_ACCESSCODE.NAME%TYPE,
P_NOTE IN LOD_ACCESSCODE.NOTE%TYPE,
P_CHANGEACCT IN LOD_ACCESSCODE.CHANGEACCT%TYPE,
P_CHANGEDATE OUT LOD_ACCESSCODE.CHANGEDATE%TYPE
IS
BEGIN
INSERT INTO LOD_ACCESSCODE
DEPT_PKID,
NAME,
NOTE,
CHANGEACCT
VALUES
P_DEPT_PKID,
P_NAME,
P_NOTE,
P_CHANGEACCT
BEGIN
SELECT LOD_ACCESSCODE_SEQ.CURRVAL INTO P_PKID FROM DUAL;
END;
BEGIN
SELECT CHANGEDATE INTO P_CHANGEDATE FROM LOD_ACCESSCODE WHERE PKID = P_PKID;
END;
END LOD_ACCESSCODE_INS;
...and the trigger that fills the PKID is this...
Code:
TRIGGER LOD_ACCESSCODE_TR_SEQ
BEFORE INSERT
ON LOD_ACCESSCODE
FOR EACH ROW
BEGIN
SELECT LOD_ACCESSCODE_SEQ.NEXTVAL
INTO :NEW.PKID
FROM DUAL;
END;
...and my sequence looks like this...
Code:
CREATE SEQUENCE LOD_ACCESSCODE_SEQ INCREMENT BY 1 START WITH 10001 MINVALUE 10001 MAXVALUE 9223372036854775807

All--
FYI, this is a follow-up to my post above.
After much Googling, I found no helpful answer to this issue.
Therefore, I have implemented a workaround.
Here is the situation and current solution.
--I do a "select * from SomeTable where 1 = 2" to get the schema from the database into an empty DataTable.
--Internally, DotNet converts from Oracle datatypes to DotNet datatypes. Therefore, the DataTable is created with typed columns. This is great so far.
--Note that in the case of a column with Oracle datatype "NUMBER" DotNet creates a column in the DataTable with the datatype as "decimal". Fine, this should work. DotNet is now sending the message that an Oracle datatype "NUMBER" can and will be converted automatically to a DotNet datatype "decimal".
--Now, I need to make an insert and then put the resulting OUT parameter from an Oracle column with datatype "NUMBER" into that DataTable column with DotNet datatype "decimal". One would think that this should work because DotNet already allowed this conversion once.
--Not so.
--When Oracle returns a column of datatype "NUMBER" as an OUT parameter from a proc, it cannot be cast internally by DotNet from NUMBER to decimal. It fails with a conversion error, as shown in detail above.
--Now, this would make some sense if it were consistent. For example, it may be that C# disallows narrowing casts in this scenario. However, what is not consistent and does not make sense is that DotNet does allow narrowing conversions when selecting the schema and building the initial DataTable. Also, given that the magnitude of an Oracle NUMBER exceeds that of a DotNet decimal (and no other DotNet numeric datatype will hold all possible values of a NUMBER), then DotNet either must allow narrowing conversions in this case OR we would never be able to map the datatypes from one platform to the other, which would be a serious problem.
--Therefore, since one cannot change the way Oracle is behaving, an adjustment needs to be made in the middle-tier. The datatype of the column needs to be set to some friendly datatype that both DotNet and Oracle can agree upon.
What I now do is grab the DataTable, get the column, and forcibly set the datatype to "string". It seems to work just fine, especially since that DataTable is for simple UI binding so, the datatype of the column is not important.
That's the "solution" for now.
An overview of the code is below.
Please send along any thoughts you may have.
Thank you.
--Mark
...here is what the SP now looks like...
Code:
CREATE OR REPLACE PROCEDURE LOD_ACCESSCODE_INS
P_PKID OUT LOD_ACCESSCODE.PKID%TYPE,
P_DEPT_PKID IN LOD_ACCESSCODE.DEPT_PKID%TYPE,
P_NAME IN LOD_ACCESSCODE.NAME%TYPE,
P_NOTE IN LOD_ACCESSCODE.NOTE%TYPE,
P_CHANGEACCT IN LOD_ACCESSCODE.CHANGEACCT%TYPE,
P_CHANGEDATE IN LOD_ACCESSCODE.CHANGEDATE%TYPE
IS
BEGIN
INSERT INTO LOD_ACCESSCODE
DEPT_PKID,
NAME,
NOTE,
CHANGEACCT,
CHANGEDATE
VALUES
P_DEPT_PKID,
P_NAME,
P_NOTE,
P_CHANGEACCT,
P_CHANGEDATE
BEGIN
SELECT LOD_ACCESSCODE_SEQ.CURRVAL INTO P_PKID FROM DUAL;
END;
END LOD_ACCESSCODE_INS;
...and here is the adjustment that I made in the middle-tier....
Code:
System.Type myType;
myType = System.Type.GetType("System.String");
_CurrentDataTable.Columns["PKID"].DataType = myType;

Similar Messages

  • I create trigger but not display massage after insert in oracle 10g

    I create trigger but not display massage after insert in oracle 10g
    **CREATE OR REPLACE TRIGGER TableName**
    **AFTER INSERT OR DELETE OR UPDATE ON test**
    **BEGIN**
    **if inserting then**
    **dbms_output.put('Message');**
    **end if;**
    **END;**

    What user interface are you using?
    If the tool doesn't support the SQL*Plus syntax (set serveroutput on), it probably has an option somewhere to enable DBMS Output. Not even knowing what tool you're using, it's impossible for us to guess where that option might be configured.
    As others have suggested, using DBMS Output to test code is less than ideal because you're dependent on the application you're using to display it to you and not every application can or will do that. If you want to use DBMS_Output, you may need to switch to a different GUI (SQL Developer or SQL*Plus are both free utilities from Oracle). Otherwise, you'd probably be better off having the trigger do something that you can subsequently query (i.e. write a row to a log table).
    Justin

  • Steps to send mail after insertion in Oracle APEX

    Hi
    I am working on one application in which i want to send mail to a user after every insertion.
    Edited by: Pankaj Kumar on Feb 2, 2012 3:57 AM

    Pankaj Kumar wrote:
    Hi
    I am working on one application in which i want to send mail to a user after every insertion.
    Edited by: Pankaj Kumar on Feb 2, 2012 3:57 AMHi,
    See APEX_MAIL API document
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_mail.htm#CIHDIEJI
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • How to capture userinfo after a partner application is authenticated through SSOSDK?

    I have successfully installed and deployed the Partner application for Portal using SSOSDK. My question is, once the user is authenticated through SSOPartnerServlet.java and gets thrown back to the partner app(PAPP), how do we get the user info(i.e. username) from the PAPP?
    Is there an API?
    I have already asked this question from oracle tech and they told me to post it
    Thanks,
    Hamid

    Pass the name of a subrotine to handle your user commands to the fm parameter.
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'.
    Then code for the user command function,
    form user_command using r_ucomm type sy-ucomm.
    case r_ucomm.
    when '<FCODE of your button>'.
    Code your logic....
    endcase.
    endform.
    To add your button using your own pf-status, you should copy a standard gui status and modify it.
    To trigger this pf-status you should pass routine name to I_CALLBACK_PF_STATUS_SET.(I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS..)
    form set_pf_status.
    set pf-status 'ZSTAT'.  "THis ZSTAT must be created by copying a STANDARD pf-status of say some std program like SAPLKKBL. and then modifying it.
    endform.

  • How to delete data before insert in oracle database

    Hi friends,
    I have one scenario.I want to send data from sap to Oracle database.Befor i am inserting data in database table,i want to clean/delete all the records in the table .This interface will run twice in a day.Can any body help me.
    SAP-PI-JDBC
    Thanks
    Ravi

    Hi Puneet,
    As per u r suggestions,i am using stored procedure.But i am getting following error.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. MASTERXXXXXX' (structure 'Statement'): java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'NAME' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)'
    I have define below structure.Please check the structure and guide me.
    <Statement
            Action   attribute  required
            Table 
    Access  
            Empname   string
            Empid         string
            date            date
              Type     attribute   required
    EXECUTE----
    >Action
    Table----
    >MASTERXXXXXX
    Type----
    >char
    Please check the above structure andguide me to changes if any requires.
    Thanks
    Ravi

  • How-To "Refresh a table of data after inserting or deleting"

    I'd like to say a word on the how-to article "How to refresh a table of data after inserting or deleting a row using ADF".
    (http://www.oracle.com/technology/products/jdev/howtos/1013/updtable/index.html?_template=/ocom/technology/content/print)
    I spent a lot of time on it because I needed help in implementing simple CRUD functionality on a table, using JSF-ADF-TopLink technologies.
    While the the article does provide correct steps, it is in one important place not specific enough, so the reader may easily get stuck. In section "Refresh the data table", point 1: when you double click on the removeEntity() button, in Structure window, then you do not get the required dialog. You get CommandButton Properties dialog.
    You must click on the removeEntity() button in Editor's Design view. But even there you may get the CommandButton Properties dialog, not managed beans dialog.
    You may resolve that by going to JSF configuration file, faces-config.xml, and switch to Overview view. This will show you the managed beans that you have.
    Then, you may already have a backing bean for the page. You can use that and avoid creating a new managed bean.
    I could understand what the operations mean only after very careful reading of "Creating More Complex Pages", section "Overriding Declarative Methods" in JDeveloper Help (or in ADF Developer's Guide PDF document).
    In general: I believe that "ADF bindings" need more conceptual explanation, maybe in form of an article. Grammatical form "bindings" may create a false understanding that "bindings" are just references. But they are not -- ADF bindings are active objects that handle traffic between UI components and Data Controls. It seems that "bindings" even communicate among themselves. Maybe it would be more understandable to differentiate strictly between "binding objects" (or "binders"?), binding object definitions and binding object references.
    It would be very helpful to have a diagram showing grahically what specific binder objects are created in a small apllication (2-3 pages using 1-2 tables), with whom they communicate and what type of data is passed on.
    Priit

    Hi
    Thanks for your infos.
    Yes exactly I use almost the same code you have post here.
    Could You answer to my next questions?
    First - >what do you mean by saying that "it's not good idea using refreshing in IE?" Of course I use refreshing in backing_bean for my button "remove" that removes row, commit changes to database and refresh table, almost the same as You said in your post:
    Code in backing_bean is and comments on difference to Your code is below:
    public commandButton2_action1(){
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("removeEntity");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    //above remove entity, but I dont now if it do commit to database? So i do it below
    OperationBinding commit1 = bindings.getOperationBinding("Commit");
    commit1.execute();
    //and at the end I refresh my table, "findAllRezerwacja1 - it is an id of the methodAction, not the iterator -> is it ok? or should I change to Iterator id?
    OperationBinding requery = bindings.getOperationBinding("findAllRezerwacja1");
    requery.execute();
    return null;
    Page Definition code for this:
    <methodAction id="findAllRezerwacja1"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="findAllRezerwacja"
    RequiresUpdateModel="true" Action="999"
    ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_findAllRezerwacja_result"/>
    <table id="findAllRezerwacja2" IterBinding="findAllRezerwacja1Iter">
    <AttrNames>
    <Item Value="dataDo"/>
    <Item Value="dataOd"/>
    <Item Value="idRezerwacja"/>
    <Item Value="liczbaUczestnikow"/>
    <Item Value="prowadzacy"/>
    <Item Value="uwagi"/>
    </AttrNames>
    </table>
    <methodAction id="removeEntity" InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="removeEntity"
    RequiresUpdateModel="true" Action="999">
    <NamedData NDName="entity"
    NDValue="${bindings.findAllRezerwacja2.currentRow.dataProvider}"
    NDType="java.lang.Object"/>
    </methodAction>
    <action id="Commit" IterBinding="findAllRezerwacja1Iter"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" RequiresUpdateModel="true"
    Action="2"/>
    </bindings>
    //and rest of code for Iterator etc
    My second question is, why when you use refresh button in IE (I know is not recommended as You said, but sometimes user do it, so I want prevent situations that I will describe here) so when I press refresh button in IE exactly after removing one row by clicking my button, refreshing by pressing IE button is doing the same --> is deleting next row. How to stop deleting row, when for example user would press IE refresh button after pressing remove button for table. If I change selection in table after deleting row, and press refresh button in IE, instead of deleting row, I got error message: JBO-29000: JBO-35007: and
    JBO-35007. So where Im doing wrong. Maybe I should do sth with postback ? Could You help me? Thanks in advance
    Last one question: what is the difference between using delete and removeEntity from operations node? Im now reading carefully ADF Dev Guide, so I hope I can find infos there? But if You know, please answer to this question.
    Thanks

  • Capturing value in after insert or update row level trigger

    Hi Experts,
    I'm working on EBS 11.5.10 and database 11g. I have trigger-A on wip_discrete_jobs table and trigger-B on wip_requirement_operations table.When ever i create discrete job, it inserts record in both wip_discrete_jobs and wip_requirement_operations.
    Note:2 tables are like master-child relation.
    Trigger-A: After Insert.Row Level trigger on wip_discrete_jobs
    Trigger-B:After Insert,Row Level trigger on wip_requirement_operations
    In Trigger A:
    I'm capturing wip_entity_id and holding in global variable.
    package.variable:=:new.wip_entity_id
    In Trigger B:
    I'm using the above global variable.
    Issue: Let's say i have create discrete job,it's wip_entity_id is 27, but the global variable is holding the previous wip_entity_id(26),not current value.It looks like before trigger A event is complete, trigger B is also in process, i think this could be the reason it's not storing the current wip_entity_id in the global variable.
    I need your help how to have the current value in the global variable so that i can use that in the trigger B.
    Awaiting response at the earliest.
    Thanks

    798616 wrote:
    Hi Experts,
    I'm working on EBS 11.5.10 and database 11g. I have trigger-A on wip_discrete_jobs table and trigger-B on wip_requirement_operations table.When ever i create discrete job, it inserts record in both wip_discrete_jobs and wip_requirement_operations.
    Note:2 tables are like master-child relation.
    Trigger-A: After Insert.Row Level trigger on wip_discrete_jobs
    Trigger-B:After Insert,Row Level trigger on wip_requirement_operations
    In Trigger A:
    I'm capturing wip_entity_id and holding in global variable.
    package.variable:=:new.wip_entity_id
    In Trigger B:
    I'm using the above global variable.
    Issue: Let's say i have create discrete job,it's wip_entity_id is 27, but the global variable is holding the previous wip_entity_id(26),not current value.It looks like before trigger A event is complete, trigger B is also in process, i think this could be the reason it's not storing the current wip_entity_id in the global variable.
    I need your help how to have the current value in the global variable so that i can use that in the trigger B.
    Awaiting response at the earliest.
    ThanksMy head hurts just thinking about how this is being implemented.
    What's stopping you from creating a nice and simple procedure to perform all this magic?
    Continue with the global/trigger magic at your own peril, as you can hopefully already see ... nothing good will come from it.
    Cheers,

  • How can i  print reports to different printer by use Trigger on table after insert

    Hello,
    Please can any one tell me how can i print (any message) to different printer (network & local printer) by use Trigger on table after insert.
    regards,
    Linda.

    What you want to do cannot be done with PL/SQL, which does have any print utilities. However you could write something using Java Stored Procedures.
    Of course the "different printer" bit will have to be data driven as triggers are not interactive.
    rgds, APC

  • How to read the data from XML file and insert into oracle DB

    Hi All,
    I have below require ment.
    I will receive data in the XML file. then i need to read that data and insert into oracle tables. please let me know how this can be handled.
    Many Thanks.

    Sounds a lot like this question, only with less details.
    how to read data from XML  variable and insert into table variable
    We can only help if you provide us details to help as we cannot see what you are doing and only know what you tell us.  Plenty of examples abound on the forums that cover the topics you seek as well.

  • How to read ecel sheet and insert into oracle table

    hi all,
    am working on forms builder 6i. and i want , from a trigger to read from a a sheet excel file the data and insert into a table that i had aleady created.
    i whrite a code that can till now open the excel file but i cant read the data to insert it into the table.
    am using TEXT_IO.IS_OPEN to open the file
    TEXT_IO.GET_LINE to take each line
    and subst(x as variable) to read the first line , but the subsrt return nohing
    any solution??

    There's already a topic made on this: how to copy data from excel to oracle forms

  • How do I prevent tree collapse after insert of row?

    Hi,
    I've got a tree with several discrattrbindings. It's a recursive tree representing a parent/child relation.
    If I add a sub record to one of the children, the tree collapses. The insert is fine and the tree is ok, it's just that it completely collapses everytime I add something. How do I prevent this? This is extremely annoying for users.
    (jdev9031 on win2k)
    Greetings,
    Ivo

    I've got some additional info, which I think is a bug.
    After the first record is added, the tree is collapsed, as I've said above. Now, if I reopen the tree and then try to open a node (that was previously closed) which has no subitems, then at the moment I click the '+', the entire tree collapses again. If I open a node that contains subs, it's fine, but empty nodes cause the tree to collapse.
    This is only after insertion of a row. If I run the app without inserting a row, the tree remains open if I open an empty node.

  • How to split the blob byte array and insert in oracle

    how to split the blob byte array and insert in oracle
    I am having a string which is of more than lenght 4000 so i am using BLOB datatype as input to get the string.
    need to split the blob in oracle and store in the different column
    The string is of bytearray i need to strore it in each column based on the byte array.

    this will be my input i need to split the above and store it in different columns in a table.
    for spliting say
    Column1 -1 byte
    Column2-3 byte
    Column3-5 byte
    ColumnN-5 byte
    Table will have corresponding data type
    Column1 - number(10,2)
    Column2 - Float
    Column3 - Float
    ColumnN-Float
    here Column2 datatype is float but it will always have 3 byte information.
    where as Column3 datatype is also float but it will always have 5 byte information.
    Say N is Column 120

  • When using office for mac or i studio after inserting several pictures, my computer locks up and the only way I can fix it is to do a force quit.  Why does it do this and how I I get it fixed without a force quit?

    I have a mac book, with office for mac and iStudio installed.  When I try to create a document using either one of these; after inserting several photos, the computer locks up and the only way I can get it to unlock is to do a force quit.  Why does it do this, and how can I get it to unlock without having to do a force quit?

    Are you using versions of the software that are compatible with the version of OS X you have installed? Very often such lockups are caused by application incompatibility.
    The problem may also come from trying to use both sets of applications at the same time while not having enough RAM installed. Adding more RAM may fix the problem.
    The problem can arise from corrupted support files such as preference files or Application Support files or corrupted cache files.
    The image files you are using may also be corrupt thus causing the problem.
    You might start with:
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation.  TechTool Pro 4.5.1 or higher are Intel Mac compatible;  Drive Genius is similar to TechTool Pro in terms of the various repair services provided.  Versions 1.5.1 or later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts had been significantly reduced in Tiger and Leopard.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.  Other utilities are also available such as Onyx, Lion Cache Cleaner, CockTail, for example.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Backuplist
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    iBackup
    JaBack
    Silver Keeper
    MimMac
    Retrospect
    Super Flexible File Synchronizer
    SuperDuper!
    Synchronize Pro! X
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.

  • How to extract data from xml and insert into Oracle table

    Hi,
    I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
    There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
    I need to extract the values of these columns and insert into the table
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>

    Re: Insert from XML to relational table
    http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta=

  • How to Display a message after inserting row in table............

    Hi
    I want to display a message after inserting rows in table like *'you have inserted a new row successfully*'.
    i am using the createinsert ADF Button to insert the rows in table.after that i am comitting it.
    after commiting i want to display message for the user.for this what i need to do.
    Please help me.
    Sailaja.

    user10860137
    Can you please explain me the each line in the code briefly.
    +public String saveButton_action(){+
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    +// note "!" operator has been removed from the default code.+
    +if(operationBinding.getErrors().isEmpty()){+
    FacesContext ctx = FacesContext.getCurrentInstance();
    FacesMessage saveMsg = new FacesMessage("Record Saved Successfully");
    ctx.addMessage(null,saveMsg);
    +}+
    return null;
    +}+
    And i have requirement to show the message on favcet "status bar".not in a popup window.(from the above code the message is showing in popup window. )the Layout i am using is PanelCollection.
    can you tell me what i need to do.
    Thanks
    Sailaja.
    Edited by: sj0609 on Mar 19, 2009 8:03 AM

Maybe you are looking for

  • I Phone wont Sync

    I have just activated my Micro Sim (Australia) and am trying to Sync to get started. However, the phone wont sync and will only let me use it for emergency calls. There is only one small bar that is registering for service, but my Mobile service prov

  • The software update server (nrc1) is not responding

    the software update server (nrc1) is not responding I have been receiving this message on my Snow Leaopard iMac for weeks now when I try Software Update .... There appears to be nothing in the Communities database about it, my internet connection wor

  • AET and extraction into BI

    Hi guys,  BI consultant here so apologies I don't speak the language but... the CRM developer has added 3 fields to crmd_order_h via AET.  He has marked all the 3 fields as 'BW reporting relevant'. I have now checked the BW extractors in the hope tha

  • Build problem for DC's moved from Local to track

    Hi All, I have created all my DC's locally. Now i am trying to move all those to Track as per "Moving Local DC's to track" steps. 1. Creating new DC's on track. 2. Copying SRC folder from local to Track DC. 3. Copying .dcdef file. 4. Copying def file

  • PRINT PROBLEM IN SCRIPT IF FIELD IS CURR TYPE

    one of the report print account statement so in this statement  print balance and it print  depends on credit and debit. now problem is like for example my credit value is 50,085.00 and debit value is 19,205.00 so the balance is 32,347.00- in script