Process xml from oracle database

Hello

I have an XML file that:

<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
< table xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
< Budgets30 >
< id > < /ID > 83201
< gm1 > 20575.2 < / gm1 >
< gm2 > 20761.2 < / gm2 >
< gm3 > 41583.6 < / gm3 >
< > 46896 gm4 < / gm4 >
< gs1 > 51438 < / gs1 >
< > 51903 gs2 < / gs2 >
< > 103959 gs3 < / gs3 >
< gs4 > 117240 < / gs4 >
< / Budgets30 >
< Budgets30 >
< id > < /ID > 83202
< > 81000 gm1 < / gm1 >
< gm2 > 0 < / gm2 >
< > 16200 gm3 < / gm3 >
< gm4 > 0 < / gm4 >
< gs1 > 202500 < / gs1 >
< gs2 > 0 < / gs2 >
< > 40500 gs3 < / gs3 >
< gs4 > 0 < / gs4 >
< / Budgets30 >

There are approximately 4000 lines. Following code does not work because of ' ORA-19011: character string buffer too small "."

Insert into xxpm_sr_cost_prices_xml values (xmltype (dbms_xslprocessor.read2clob (lv_file_dir, lv_file_name)));
--
l_location: = ' select / Extract to inhabitants. "
SELECT scp.content.extract('//Id').getStringVal () got Id
scp.content.extract('//gm1').getStringVal () as gm1
scp.content.extract('//gm2').getStringVal () as gm2
scp.content.extract('//gm3').getStringVal () as gm3
scp.content.extract('//gm4').getStringVal () as gm4
scp.content.extract('//gs1').getStringVal () as gs1
scp.content.extract('//gs2').getStringVal () like the gs2
scp.content.extract('//gs3').getStringVal () as gs3
scp.content.extract('//gs4').getStringVal () as gs4
IN l_id, l_gm1, l_gm2, l_gm3, l_gm4, l_gs1, l_gs2, l_gs3, l_gs4
OF xxpm_sr_cost_prices_xml scp

What does not work?

Robbert cordially

And I guess that the default namespace that you use in the XMLTABLE is also in the XML file?

So, if I change the example to work with your query data...

SQL> ed
Wrote file afiedt.buf

  1  with t as (select xmltype('
  2  
  3    
  4      
  5        83201
  6        20575.2
  7        20761.2
  8        41583.6
  9        46896
 10        51438
 11        51903
 12        103959
 13        117240
 14      
 15      
 16        83202
 17        81000
 18        0
 19        16200
 20        0
 21        202500
 22        0
 23        40500
 24        0
 25      
 26    
 27  ') as xml from dual)
 28  --
 29  -- END OF TEST DATA
 30  --
 31  SELECT x.*
 32  FROM t, XMLTable(
 33  XMLNamespaces(default 'http://developer.cognos.com/schemas/xmldata/1/'),
 34  '/dataset/data/row'
 35  passing t.xml
 36  columns Id number path '//Id'
 37  ,gm1 number path '//gm1'
 38  ,gm2 number path '//gm2'
 39  ,gm3 number path '//gm3'
 40  ,gm4 number path '//gm4'
 41  ,gs1 number path '//gs1'
 42  ,gs2 number path '//gs2'
 43  ,gs3 number path '//gs3'
 44* ,gs4 number path '//gs4') x
SQL> /

        ID        GM1        GM2        GM3        GM4        GS1        GS2        GS3        GS4
---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
     83201    20575.2    20761.2    41583.6      46896      51438      51903     103959     117240
     83202      81000          0      16200          0     202500          0      40500          0

SQL>

Tags: Database

Similar Questions

  • Graphic design of data sourcing XML from a database

    Hi all

    I try to display a histogram with Source such as an XML that is generated from a database using PHP. Some how I get errors... Is it possible to do that... He... If so how should it be done.

    This table exists in MYSQL

    CREATE TABLE "project1". "bubble_graph")
    Varchar (45) 'Product' NOT NULL default ",
    int (10) 'delivery' unsigned zerofill NOT NULL,.
    int (10) unsigned zerofill NOT NULL ' delay'
    ) ENGINE = InnoDB DEFAULT CHARSET = latin1;


    INSERT INTO bubble_graph VALUES ('IteamA', 20, 2);
    INSERT INTO bubble_graph VALUES ('IteamB', 20, 8);
    INSERT INTO bubble_graph VALUES ('IteamC', 20, 1);
    INSERT INTO bubble_graph VALUES ('IteamD', 20, 6);
    INSERT INTO bubble_graph VALUES ('IteamE', 20, 15);
    INSERT INTO bubble_graph VALUES ('IteamF', 20, 3);
    --------------------------------------PHP----------------code
    <? PHP
    Define ("DATABASE_SERVER", "localhost: 3306 ');
    Define ('DATABASE_USERNAME', 'root');
    Define ("DATABASE_PASSWORD", "yyyyyyy");
    Define ('database_name', 'Project1');

    connect to the database
    $mysql = mysql_connect (' localhost: 3306 ', 'root', 'yyyyyy');

    @mysql_select_db (DATABASE_NAME);

    Returns a list of all users
    $Query = ' select Product, round (delivery) as delivery, round (delay) in the time of bubble_graph ";
    $Result = mysql_query ($Query);

    $Return = "< root >."

    While ($User = mysql_fetch_object ($Result))
    {
    $Return. = "< Data > ';
    $Return. = "< data". " Product =------"". " $User-> product. » \ "> » ;
    $Return. = '< product >. $User-> product. "< / product > ';
    $Return. = "< delivery >." $User-> delivery. "< / delivery > ';
    $Return. "< delay > =. $User-> delay. "< / delay > ';
    $Return. = "< / data > ';

    }
    $Return. = "< / root >;
    mysql_free_result ($Result);
    print ($Return)
    ? >
    ++++++++++++++++++++++++++++++Flex code+++++++++++

    < mx:ColumnChart id = "table" dataProvider = "{results}" showDataTips = "true" width = "513" height = "286" type = "grouped" x = "0" y = "31" >
    < mx:horizontalAxis >
    < mx:CategoryAxis dataProvider = "{results}" categoryField = "Product" / >
    < / mx:horizontalAxis >

    < mx:series >
    < mx:Array >
    < mx:ColumnSeries yField = 'period' name = 'time' / >
    < mx:ColumnSeries yField = 'delivery' name = 'delivery' / >
    < / mx:Array >
    < / mx:series >
    < / mx:ColumnChart >


    Consider this, your code is far away. Your idea is fundamentally correct, but take a look at one, I built. This actauly return xml from a database published on a page and access to the page & data using the correct data aggregate query string values. Look closley the code using im to organize the results.


    http://www.Adobe.com/2006/mxml"layout ="absolute"backgroundGradientColors ="[#ffffff, #ffffff]"currentState ="stSalesByDate">


    Import the required namespaces
    Import mx.controls.Alert;
    import mx.validators.DateValidator

    var ResolveUrl:String = "";

    Initialization function manages the init program
    private function init (): void {}

    ResolveUrl = Application.application.parameters.ResolveUrl;

    }

    Valid entries and fires http service
    private function buildReports (): void {}

    var retVal:Boolean = isValidDates (dateStart.text, dateEnd.text);

    If (retVal == true) {}

    wService.send ();
    currentState = "stSalesResults";

    } else {}

    Alert.Show ("Please enter dates valid.', 'Invalid Date', Alert.OK");

    }

    }

    Manages the State switch Events for new reports
    private function newReport (): void {}

    currentState = "stSalesByDate";

    }

    Date comparison function handles to ensure deadlines are valid
    private void isValidDates(strStart:String,_strEnd:String):Boolean {}

    var blnIsValid:Boolean = false;

    If (strStart.length == 0 | strEnd.length == 0) {}

    blnIsValid = false;

    } else {}

    blnIsValid = true;

    }

    return blnIsValid

    }

    ]]>































    This code is called e4x he treats xml as a native object, search :)

  • Import an Access from Oracle database

    Hello

    I would like to know if there is a way to import an Access from Oracle database


    Thanks forward

    The easy and simple way to do this is using Sql Developer

    Please see the link is a guide step by step to achieve what you want

    http://www.Oracle.com/technology/tech/Migration/Workbench/Viewlets/accessconnlauncher.html

    http://www.Oracle.com/technology/tech/Migration/Workbench/Viewlets/msaccesslauncher.html

    Concerning

  • Download / file to process XML in Oracle tables with inconsistent structure

    I need help to figure out if I can write a piece of code that can process XML elements / files that do not match every time. If the data does not exist for a particular column, the element or attribute is not included in the resulting XML code.

    Here is an example of my script:

    < testxml >
    < departments >
    < DepartmentID > 1001 < / DepartmentID >
    < DepartmentNum > 10 < / DepartmentNum >
    < DepartmentName > finance < / DepartmentName >
    < DepartmentHead > Scott Tiger < / DepartmentHead >
    < / departments >
    < employees >
    < employee >
    < EmployeeID > 1111 < / EmployeeID >
    Annabella < EmployeeFirstName > < / EmployeeFirstName >
    < EmployeeMiddleName > D < / EmployeeMiddleName >
    Miller < EmployeeLastName > < / EmployeeLastName >
    Anna of < EmployeePrefName > < / EmployeePrefName >
    January 1, 1970 < EmployeeDOB > < / EmployeeDOB >
    < EmployeeSalary > 5000 < / EmployeeSalary >
    < EmpCommission > 1000 < / EmpCommission >
    < / employee >
    < employee >
    < EmployeeID > 1112 < / EmployeeID >
    Benjamin < EmployeeFirstName > < / EmployeeFirstName >
    Burns < EmployeeLastName > < / EmployeeLastName >
    Ben < EmployeePrefName > < / EmployeePrefName >
    < EmployeeDOB > 2 February 1980 < / EmployeeDOB >
    < > 4000 EmployeeSalary < / EmployeeSalary >
    < EmpCommission > 1500 < / EmpCommission >
    < / employee >
    < employee >
    < EmployeeID > 1113 < / EmployeeID >
    Charles < EmployeeFirstName > < / EmployeeFirstName >
    Cook < EmployeeLastName > < / EmployeeLastName >
    Charlie < EmployeePrefName > < / EmployeePrefName >
    < EmployeeDOB > 3 March 1975 < / EmployeeDOB >
    < > 6000 EmployeeSalary < / EmployeeSalary >
    < / employee >
    < / employees >
    < / testxml >

    In the example above, you can make a difference in 3 employee records. The first record has all the details he has given to all the columns, but second record is missing the tag < EmployeeMiddleName > and the third record is missing < EmployeeMiddleName > and < EmpCommission > tags altogether because there is no data in the database for them. Under normal scenarios, these files come with a Blank item or attribute tags (< EmpCommission / >, but this isn't the case here.)

    Appreciate your help in this in advance.

    Thank you and best regards,
    JD

    Hi JD,

    Glad you made your way here :)

    For example, suppose that your sample WITH THAT XML has been loaded in TMP_XML (table XMLType), so what's the problem:

    SQL> SELECT x.*
      2  FROM tmp_xml t
      3     , XMLTable(
      4         '/testxml/Employees/Employee'
      5         passing t.object_value
      6         columns ID         number       path 'EmployeeID'
      7               , FirstName  varchar2(30) path 'EmployeeFirstName'
      8               , MiddleName varchar2(10) path 'EmployeeMiddleName'
      9               , LastName   varchar2(30) path 'EmployeeLastName'
     10               , PrefName   varchar2(30) path 'EmployeePrefName'
     11               , DOB        varchar2(15) path 'EmployeeDOB'
     12               , Salary     number       path 'EmployeeSalary'
     13               , Commission number       path 'EmpCommission'
     14       ) x
     15  ;
    
            ID FIRSTNAME       MIDDLENAME LASTNAME       PREFNAME       DOB                 SALARY COMMISSION
    ---------- --------------- ---------- -------------- -------------- --------------- ---------- ----------
          1111 Annabella       D          Miller         Anna           01-JAN-1970           5000       1000
          1112 Benjamin                   Burns          Ben            02-FEB-1980           4000       1500
          1113 Charles                    Cook           Charlie        03-MAR-1975           6000
     
    

    ?

    See, missing components appear in the NULL columns.
    Do you want a different behavior?

  • Import/insert data from XML in Oracle database tables?

    Hello. (I use 10.1.3.3.0 JDeveloper and Oracle 10 g)

    I was able to export the data of one of my tables in the database using a View object and .writeXML.

    Now, I want to take an xml file that is formatted just like what is spit out by the writeXML and put this info in my database table. I followed the examples online, and have tried to use .readXML as follows:

    Element = XMLDoc.getDocumentElement ();

    vo.readXML (element,-1);

    I know that it's the kind of work, because at first, I got an error message that one of the required attributes was missing. So, I added this attribute in my xml file and run my code. No errors. But, I checked my database, and new records have been added.

    Is there something I did wrong? Or is it maybe something I left out? I also noticed that there are several versions of readXML as readFromXML. Which should I use and how?

    Thank you.

    Hello

    Example of work is completely: http://kuba.zilp.pl/?id=461

    Kuba

  • Installation of the UCR switches from Oracle database 11g

    UCR-6083: impossible - check requirement prerequisites for the selected item: SOAINFRA
    Refer to the journal of the RCUS to D:\SOA1114\rcuHome\rcu\log\logdir.2011-04-05_12-12\rcu.log for more details.
    RCU - 6107:DB prerequisites for Init Param failed: process
    Current value is 40. It must be greater than or equal to 200.

    RCU - 6092:Component validation selection failed. Please refer to connect to D:\SOA1114\rcuHome\rcu\log\logdir.2011-04-05_12-12\rcu.log for more details.

    during the selection of the components, I selected soa infrastructure and I continued. but she stopped when checking for prerequisites.
    pls find my file rcu.log as below.

    --------------------------------------------------------------------------------------------------------------------
    2011-04-05 12:12:11.694 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: dir Log is not exist. Creation logdir:D:\SOA1114\rcuHome\/rcu/log\logdir.2011-04-05_12-12
    2011-04-05 12:12:11.704 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: Log file does not exist. Creation of journal file:D:\SOA1114\rcuHome\/rcu/log\logdir.2011-04-05_12-12\rcu.log
    2011-04-05 12:12:11.704 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: LOG_LEVEL_IS - NOTIFICATION: 1
    2011-04-05 12:12:11.704 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: hostname: PC161826
    2011-04-05 12:12:11.704 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: OSINFO: x 86 Windows 7 6.1
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: JREINFO: 1.6.0_21 D:\SOA1114\rcuHome\jdk\jre
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: username: 249141
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: USERDIR: D:\SOA1114\rcuHome\BIN
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: user country: U.S.
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: the user's language: en
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: Java class path: D:\SOA1114\rcuHome\\jlib\rcu.jar;D:\SOA1114\rcuHome\\jlib\share.jar;D:\SOA1114\rcuHome\\jlib\help-share.jar;D:\SOA1114\rcuHome\\jlib\ohj.jar;D:\SOA1114\rcuHome\\jlib\orai18n-mapping.jar;D:\SOA1114\rcuHome\\lib\xmlparserv2.jar;D:\SOA1114\rcuHome\\jdbc\lib\ojdbc5.jar;D:\SOA1114\rcuHome\\jdbc\lib\ojdbc14.jar;D:\SOA1114\rcuHome\\jlib\jewt4.jar;D:\SOA1114\rcuHome\\jlib\ojdl.jar;D:\SOA1114\rcuHome\\modules\oracle.odl_11.1.1\ojdl.jar;D:\SOA1114\rcuHome\\jlib\SchemaVersion.jar;D:\SOA1114\rcuHome\\jlib\wldb2.jar;D:\SOA1114\rcuHome\\jlib\wlsqlserver.jar;D:\SOA1114\rcuHome\\jlib\wlbase.jar;D:\SOA1114\rcuHome\\jlib\wlutil.jar;D:\SOA1114\rcuHome\\ jlib\fmwgenerictoken.jar;D:\SOA1114\rcuHome\\jlib\com.bea.core.weblogic.workmanager_1.9.0.0.jar;D:\SOA1114\rcuHome\\jlib\oracle_ice.jar;D:\SOA1114\rcuHome\\jlib\rcuhelppages.jar;D:\SOA1114\rcuHome\\assistants\opca\jlib\opca.jar;D:\SOA1114\rcuHome\\portal\jlib\ptlshare.jar;D:\SOA1114\rcuHome\\jlib\ldapjclnt11.jar;D:\SOA1114\rcuHome\\jlib\commons-collections-3.1.jar;D:\SOA1114\rcuHome\\jlib\commons-dbcp-1.2.1.jar;D:\SOA1114\rcuHome\\jlib\commons-logging.jar;D:\SOA1114\rcuHome\\jlib\commons-pool-1.2.jar;D:\SOA1114\rcuHome\\jlib\quartz-1.6.0.jar;D:\SOA1114\rcuHome\\jlib\xml.jar;D:\SOA1114\rcuHome\\jlib\jta.jar;D:\SOA1114\rcuHome\\jlib\iam-platform-utils.jar;D:\SOA1114\rcuHome\\jlib\iam-platform-authz-service.jar;D:\SOA1114\rcuHome\\jlib\iam-features-identity.zip;D:\SOA1114\rcuHome\\jlib\ iam-features-configservice.zip;D:\SOA1114\rcuHome\\jlib\jps-api.jar;D:\SOA1114\rcuHome\\jlib\jps-common.jar;D:\SOA1114\rcuHome\\jlib\jps-ee.jar;D:\SOA1114\rcuHome\\jlib\jps-internal.jar;D:\SOA1114\rcuHome\\jlib\jps-manifest.jar;D:\SOA1114\rcuHome\\jlib\MicroSM.jar;D:\SOA1114\rcuHome\\jlib\javax.persistence_1.0.0.0_1-0-2.jar;D:\SOA1114\rcuHome\\jlib\org.eclipse.persistence_1.0.0.0_1-1-0.jar;D:\SOA1114\rcuHome\\jlib\identitystore.jar;D:\SOA1114\rcuHome\\jlib\jps-unsupported-api.jar;D:\SOA1114\rcuHome\\jlib\pd-internal.jar
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.common.util.LoggingManager::initialize: Java library path: D:\SOA1114\rcuHome\jdk\jre\bin; ; C:\Windows\Sun\Java\bin; C:\Windows\System32; C:\Windows;D:\SOA1114\rcuHome\\bin; C:\oraclexe\app\oracle\product\10.2.0\server\bin; C:\Windows\System32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\system32\WindowsPowerShell\v1.0\
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.rcu.Rcu::execute: launch RCU.
    2011-04-05 12:12:11.714 NOTIFICATION rcu: oracle.sysman.assistants.rcu.Rcu::execute: InteractiveRCUModel of creation
    2011-04-05 12:12:12.224 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.xmldata.RepositoryConfigManager: < init >: rather than DTD: D:\SOA1114\rcuHome\/rcu/config/
    2011-04-05 12:12:12.224 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.xmldata.RepositoryConfigManager: < init >: ComponentInfo xml location: D:\SOA1114\rcuHome\/rcu/config/ComponentInfo.xml
    2011-04-05 12:12:12.224 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.xmldata.RepositoryConfigManager: < init >: xml storage location: D:\SOA1114\rcuHome\/rcu/config/Storage.xml
    2011-04-05 12:12:12.224 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.xmldata.RepositoryConfigManager: < init >: DTD Validation: true
    2011-04-05 12:12:12.234 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.RCUCommandLineParser::process: processing command line...
    2011-04-05 12:12:57.107 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::connect: the connection to the database: user: sys, role: SYSDBA, connectString: (description = (address = (host = localhost)(protocol=tcp) (port = 1521)) (connect_data = (service_name = XE) (server = dedicated)))
    \rcuHome\/RCU/integration//EPM/registry/RepositoryConfig.XML is valid

    2011-04-05 12:12:58.267 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.xmldata.RepositoryConfigManager::parseStorageData: XML Document: D:\SOA1114\rcuHome\/rcu/config/Storage.xml is valid
    2011-04-05 12:12:58.467 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: turnaround time for initialization of configuration metadata repository: 640 milliseconds
    2011-04-05 12:12:58.467 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: execution of task: get the properties of the specified database
    2011-04-05 12:12:58.467 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.validation.PrereqEvaluator::executePrereqTask: Prereq taskId = PREREQ_QUERY_DATABASE
    2011-04-05 12:12:58.517 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: lead time to get the properties of the specified database: 50 milliseconds
    2011-04-05 12:12:58.517 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: execution of task: obligation of verification for the specified database
    2011-04-05 12:12:58.517 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.validation.PrereqEvaluator::executePrereqTask: Prereq taskId = PREREQ_GLOBAL_CHECK
    2011-04-05 12:12:59.967 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: lead time for the requirement of verification for the specified database: 1450 milliseconds
    2011-04-05 12:12:59.967 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: task execution: run before create operations
    2011-04-05 12:12:59.967 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.CustomCompManager::getActionList: CustomCompManager.getActionList: CUSTOM_COMP_PRELOAD_SETUP
    2011-04-05 12:12:59.977 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.AbstractCompTask::execute: ValidationRule result was false. Jump action: oracle.ias.version.SchemaVersionUtil:utilCreateRegistryAndCopyData
    2011-04-05 12:12:59.977 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.AbstractCompTask::execute: ValidationRule result was false. Jump action: oracle.ias.version.SchemaVersionUtil:utilCreateRegistryTable
    2011-04-05 12:12:59.977 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: lead time to run before the operations of creation: 10 milliseconds
    2011-04-05 12:14:15.656 NOTIFICATION rcu: oracle.sysman.assistants.common.task.ProgressPanel::progressToNextTask: waiting for delegate be visible
    2011-04-05 12:14:15.666 NOTIFICATION rcu: oracle.sysman.assistants.common.task.ProgressPanel::progressToNextTask: waiting for delegate be visible
    2011-04-05 12:14:15.676 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: execution of task: Metadata Services
    2011-04-05 12:14:15.676 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.validation.PrereqEvaluator::executePrereqTask: Prereq taskId = MDS
    2011-04-05 12:14:15.676 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.validation.PrereqEvaluator::executePrereqTask: from prereq check component
    2011-04-05 12:14:15.706 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: turnaround time for metadata Services: 30 milliseconds
    2011-04-05 12:14:15.706 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: execution of task: SOA Infrastructure
    2011-04-05 12:14:15.706 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.validation.PrereqEvaluator::executePrereqTask: Prereq taskId = SOAINFRA
    2011-04-05 12:14:15.706 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.validation.PrereqEvaluator::executePrereqTask: from prereq check component
    2011-04-05 12:14:15.706 rcu ERROR: oracle.sysman.assistants.rcu.backend.task.PrereqTask::execute: Prereq evaluation failed
    Refer to the journal of the RCUS to D:\SOA1114\rcuHome\rcu\log\logdir.2011-04-05_12-12\rcu.log for more details.
    at oracle.sysman.assistants.rcu.backend.validation.PrereqEvaluator.executePrereqTask(PrereqEvaluator.java:642)
    at oracle.sysman.assistants.rcu.backend.task.PrereqTask.execute(PrereqTask.java:68)
    at oracle.sysman.assistants.rcu.backend.task.ActualTask.run(TaskRunner.java:306)
    at java.lang.Thread.run(Thread.java:619)

    2011-04-05 12:14:31.806 rcu ERROR: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: UCR failed
    oracle.sysman.assistants.common.task.TaskExecutionException: UCR-6083: impossible - check requirement prerequisites for the selected item: SOAINFRA
    Refer to the journal of the RCUS to D:\SOA1114\rcuHome\rcu\log\logdir.2011-04-05_12-12\rcu.log for more details.
    RCU - 6107:DB prerequisites for Init Param failed: process
    Current value is 40. It must be greater than or equal to 200.

    at oracle.sysman.assistants.rcu.backend.task.PrereqTask.execute(PrereqTask.java:76)
    at oracle.sysman.assistants.rcu.backend.task.ActualTask.run(TaskRunner.java:306)
    at java.lang.Thread.run(Thread.java:619)

    RCU - 6107:DB prerequisites for Init Param failed: process
    Current value is 40. It must be greater than or equal to 200.

    Please increase the DB process parameter properly. Please see-

    http://www.Oracle.com/technetwork/middleware/soasuite/overview/quickstartguidesoasuite11gr1ps3-313245.PDF

    Run under SQL before starting the RCU-

    SQL > alter system reset sessions scope = spfile sid ='* ';
    SQL > change processes control system = 300 scope = spfile;
    SQL > shutdown immediate
    SQL > startup

    Kind regards
    Anuj

    Published by: Anuj Dwivedi on April 5, 2011 13:24

  • Error connecting to the Access from Oracle database

    Dear all,

    I am trying to connect to Oracle 9i in the Access database.

    but im getting error when running query below.
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYSQL
    I did the next thing through to connect to the database.

    (1) first of all I did called ODBC1 odbc driver
    (2) I create the following file on the oracle C:\oracle\ora9I\hs\admin\initodbc1.ora Server
    I have change the thing below in initodbc1.ora
    HS_FDS_CONNECT_INFO =ODBC1
    HS_FDS_TRACE_LEVEL = ON
    (3) I made a few changes in sqlnet.ora
    SQLNET.AUTHENTICATION_SERVICES= NONE
    before it was *NTS*
    (4) here's the entries in tnsnames.ora I changed the port of 1521 to 1522 cos 1521 already exists.
    ODBC1.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
        )
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODBC1)
        )
      )
    ODBC1.WORLD =
      (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.251) (PORT = 1522)
      )
      (CONNECT_DATA =
          (SID = ODBC1)
      )
      (HS=OK)
     )
    (5) the code in the file listener
    ODBC1 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        )
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
        )
      )
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = extproc)
        )
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = orcl)
         )
         (SID_DESC =
          (PROGRAM = hsodbc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = ODBC1)
        )
      )
    (6) after that I created
    SQL> CREATE DATABASE LINK MYSQL CONNECT TO XTRACK IDENTIFIED BY XTRACK USING 'ODBC1.WORLD'
    
    Database link created.
    (7) the listener status
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-MAR-2012 21:26:16
    
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                04-MAR-2012 20:52:33
    Uptime                    0 days 0 hr. 33 min. 44 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "ODBC1" has 1 instance(s).
      Instance "ODBC1", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    I did exactly what documents said, and it will not be through any error but atlast when I try to access access database tables it gives me the error below
    SELECT * FROM DBO_COMPANY@MYSQL
                              *
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYSQL
    I use Oracle9i Enterprise Edition Release 9.2.0.1.0 any help will be appreciate.

    Concerning

    Houda

    Published by: houda Shareef on 4 March 2012 10:25

    I guess that your listener.ora always has a section of SID and you did not copy paste... Then please post the entire file

    Please open a command line window and do:
    C:\oracle\ora9I\bin\hsodbc
    After all output including the call.

    Published by: kgronau on March 6, 2012 18:31
    When the listener above is still correct, the cause would be that you have 2 SID with the same name in your listener.ora:
    SID_LIST_ODBC1 =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = ODBC1)
    (ORACLE_HOME = C:\oracle\ora9I)
    (PROGRAM = hsodbc)
    )
    (SID_DESC =
    (GLOBAL_DBNAME = ODBC1)
    (ORACLE_HOME = C:\oracle\ora9I)
    (SID_NAME = ODBC1)
    )
    )

    Please change to:
    SID_LIST_ODBC1 =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = ODBC1)
    (ORACLE_HOME = C:\oracle\ora9I)
    (PROGRAM = hsodbc)
    )
    )

    Published by: kgronau on March 6, 2012 18:34
    Once you change the listener, please stop and start the listener called odbc1: odbc1 stop lsnrctl and lsnrctl start odbc1

  • How to generate the tag xml from oracle pl/sql

    Hi all

    I have my db is version 10.2.0.3.0 - Production

    I tried a few examples

    The first is xmlgen.getXml like that

    SELECT dbms.xmlgen.getXml)
    ' SELECT order_number "EMP_NO".
    , header_id 'NAME '.
    , org_id "DEPT_NO.
    Of oe_order_headers_all
    WHERE header_id = 39441'
    ) OF THE double;


    but I think xmlgen.getXm is not a valid identifier

    Secondly, I tried like this

    SELECT e.employee_id,
    XMLELEMENT ("Emp", e.first_name |) » '|| Select) AS 'RESULT '.
    OF e hr.employees



    but the expected production is like that

    1001 < Emp > John 6000 < / Emp >


    but I'm getting

    10 (ORAXML)

    Someone could tell me what error or no matter what format was changed

    Thanks and greetings
    Srikkanth

    example:

    SQL> ed
    Wrote file afiedt.buf
    
      1  SELECT dbms_xmlgen.getXml(
      2  'SELECT empno "EMP_NO"
      3  , ename "NAME"
      4  , deptno "DEPT_NO"
      5  FROM emp'
      6* ) FROM dual
    SQL> /
    
    DBMS_XMLGEN.GETXML('SELECTEMPNO"EMP_NO",ENAME"NAME",DEPTNO"DEPT_NO"FROMEMP')
    --------------------------------------------------------------------------------
    
    
     
      7369
      SMITH
      20
     
     
      7499
      ALLEN
      30
     
     
      7521
      WARD
      30
     
     
      7566
      JONES
      20
     
     
      7654
      MARTIN
      30
     
     
      7698
      BLAKE
      30
     
     
      7782
      CLARK
      10
     
     
      7788
      SCOTT
      20
     
     
      7839
      KING
      10
     
     
      7844
      TURNER
      30
     
     
      7876
      ADAMS
      20
     
     
      7900
      JAMES
      30
     
     
      7902
      FORD
      20
     
     
      7934
      MILLER
      10
     
    
    
  • How to write the output from oracle to XML format

    can one please let me know how write or exit procedure, or a function hidden in XML?

    [url http://download.oracle.com/docs/cd/E11882_01/appdev.112/e23094/xdb13gen.htm#g1047191] 18 chapter in the XML DB Developer's Guide deals with many different ways to generate XML from the database data.

  • DB link from oracle to sql server

    Hi all

    Which is the easiest way to connect to sql server from oracle database? Require a separate permit? It's 11.1.0.7 on RHEL 5.7, 64 bit.

    Kind regards

    Vinod

    Hello

    There is a simple example using the 'free' method described here Ed

    http://dbaharrison.blogspot.co.UK/2014/12/Oracle-talking-to-SQL-Server-over.html

    See you soon,.

    Rich

  • How to connect Microsoft excel to oracle database?

    version Oracle 11.2.0.3
    version of solaris 10 operating system
    Microsoft excel 2007

    any body can help me how to connect excel, oracle database, I can write my query in excel, and retrieve data from oracle database and show in excel sheet or I can write a query to insert data to the oracle database.

    Hello

    I never tried, but why not try so if you succeeded you will come to know otherwise you would need still oracle client to connect to the oracle database that is located on the other server or if you do not have to install on your local machine that you cannot connect to the oracle database oracle client.

  • With regard to the migration of the Oracle database to MS SQL

    Hi all

    In my application, oracle is the existing database. We need to migrate from Oracle database to MS SQL.
    We need procedure is as below
    1 export data from Oracle and keep it in a file. (.dmp)
    2 import data from MS SQL in the oracle export file.

    and vice versa from MS SQL to Oracle.

    My question is - it is possible to import the .bmp (oracle export data) in MS SQL.

    Please clarify for me.

    There are two options to get the data from Oracle to MS SQL.
    The simplest is to create a linked in MS SQL to Oracle server and copy the data with a query like select * in oracle.schema.table my_mssqlTable; via the linked server.
    Some data types will not be supported.
    That's an instant copy.

    If you need a fence at real-time replication, you can use replication MS (I would not recommend because it creates triggers on the Oracle tables), or you can use GoldenGate or DataCurrents or other replication products.

  • Issue in economy/recovery of TEXT RICH in/from MySQL database

    Hello

    I am not able to save rich text (htm tag) to the database. When I save the text content rich in textfield to database, it is saved in plain text format, but not as rich text.

    When I select in the table. I'm getting Plain text but not rich.

    This could be a variable incompatibility. I traced a content rich text field to a column of type text variable. Please let me know what I do to store rich text mapped to the database.

    following commands I used...

    CREATE TABLE fordEformTC4

    (

    eformName VARCHAR (25),

    Fr1Value TEXT,

    Fr2Value TEXT,

    Fr3Value TEXT

    );

    I'm putting below the content of the column Fr1Value

    <? XML version = "1.0" encoding = "UTF-8" ?>

    - < TextField1 type of =" text " >

    - < body xmlns =" http://www.w3.org/1999/xhtml " >

    - < p style = " margin-top:0pt;margin-bottom:0pt;text-valign:middle;text-align:justify;font-family:'Myriad Pro'; do-size: 10pt; make-weight: bold; text-decoration: no " " >

    Problem

    < span style = » police-weight: normal""">to store the text in the database< /span>

    </p>

    </body>

    < / TextField1 >

    When I retrieve the XML from the database, I see clear...

    <? XML version = "1.0" encoding = "UTF-8"? >

    < form1 >

    < Page > 1

    < TextField1 type = "text" > problem by storing the text in the database < / TextField1 >

    < / TextField1 >

    < / Page1 >

    < / form1 >

    Please let me know what the problem is. What mistake I make in my design.

    Concerning

    Sunil


    I used the function serialize() and Deserialize () in the activity of Misc setValue to save and retrieve data xhtml from adobe to db.

    It has worked well.

    Concerning

    Sunil

  • Oracle Database 11 g: Introduction to SQL - what his Code review?

    I have read from Oracle Database 11 g: SQL Fundamentals I and book II. Should what test I take?

    user11164565 wrote:
    I have read from Oracle Database 11 g: SQL Fundamentals I and book II. Should what test I take?

    Hmmm, I know, that there is no such book text... which is its ISBN number?

    Also reading is not enough, you must be practiced.

    Please read confirm you have read the announcements forum especially the road you choose [http://forums.oracle.com/forums/ann.jspa?annID=1122]

    Are also studying the certification website, [www.oracle.com/education/certification]... reviews-list all reviews... and drill on those which appear to be relevant.

  • SOS! -Error to load data from Oracle 11 g to Essbase using ODI

    Hi all.

    I want to load data from oracle database to essbase using ODI.
    I have set up correctly the Hyperion essbase physical and logical topology manager and got the structure ESSBASE BASIC app DEMO.
    The problem is.
    1. when I try see data right click on the table of essbase.
    va.sql.SQLException: driver must be specified
    at com.sunopsis.sql.SnpsConnection.a (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.testConnection (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.testConnection (SnpsConnection.java)
    at com.sunopsis.graphical.frame.b.jc.bE (jc.java)
    at com.sunopsis.graphical.frame.bo.bA (bo.java)
    at com.sunopsis.graphical.frame.b.ja.dl (ja.java)
    to com.sunopsis.graphical.frame.b.ja. < init > (ja.java)
    to com.sunopsis.graphical.frame.b.jc. < init > (jc.java)
    I got the answer of partisan Oracle it's ok, just omit it. The second problem will appear.
    2 create an interface between the oracle and essbase database, click on the option ' staging of deffirent from the area of the "(ce qui signifie que la mise en scène est créé à la base de données oracle) target, and using IKM SQL for Hyperion Essbase (metadata), run this interface".

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    "< String >" file, line 61, in there?
    com.hyperion.odi.essbase.ODIEssbaseException: invalid value specified [RULES_FILE] for the load option [null]

    at com.hyperion.odi.essbase.ODIEssbaseMetaWriter.validateLoadOptions (unknown Source)

    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java)

    at org.python.core.PyMethod.__call__ (PyMethod.java)

    at org.python.core.PyObject.__call__ (PyObject.java)

    at org.python.core.PyInstance.invoke (PyInstance.java)

    to org.python.pycode._pyx1.f$ 0 (< string >: 61)

    to org.python.pycode._pyx1.call_function (< string >)

    at org.python.core.PyTableCode.call (PyTableCode.java)

    at org.python.core.PyCode.call (PyCode.java)

    at org.python.core.Py.runCode (Py.java)

    at org.python.core.Py.exec (Py.java)



    I am very confused by it. Someone give me a solution or other docs.

    Ethan.

    Hello

    You say that you are loading, but you chose the KM for the loading of metadata?
    If you load metadata then you must provide a rules file, if you are loading and then choose the KM - IKM SQL for Hyperion Essbase (DATA)

    Ok?

    See you soon

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

Maybe you are looking for

  • Satellite A500 Pro keeps freezing

    Help... I have a Satellite A500. It keeps freezing. Sometimes it will boot when turned on, but then as soon as I select a program to open, it freezes.I can't do anything. I can't control alt delete to open the Task Manager. The only thing I can do is

  • Only the user is a Standard user, how do I get an admin account?

    Hello Windows 7 Pro When I set up this new computer, I created the main account as a standard user. Bad move. Now when I try to make changes, I invited him UAC with an inactive "Yes" button. It is said to enter an administrator password - it is not o

  • Need help to get my mouse recognized, all started after the installation of the center of the keyboard and mouse

    Original title: Microsoft mouse and keyboard Center Hello I'm sure this question has been asked and answered before. But I just bought a mouse Microsoft Sculpt comfort, downloaded and installed M and K Center. But it does not recognize my mouse, I pl

  • Installed memory winodows 7 Ultimate no recoginizing

    I preformed mainttenance on my Dell XPS 9100 that is to say to remove dust. When I started Winodows he recognized only 16 GB of 24 GB installed. I see in the system BIOS, but not in Windows. How could I fix this?

  • Add windows copy hard drive?

    Hello I would buy a hard drive and add it to my pc so I can use this drive only for games.  My question is can I make a copy of my existing windows 8 or 8.1. and put it on that drive?  If so would not even better performance a game on a hard drive wi