VBO-1508 and ORA-29902 when trying to configure XML DB

Hello,
after installing a fresh Oracle 9i EE System I would like to start using the XML DB part.
While trying to change the XML DB config using the Oracle Enterprise Manager console I always get an error (see subject).
There was alrady an Apache 2 installed and running on the server. Therfore I checked the httpd.conf in the Oracle admin dir and can find a Port 7783 and Listen 7783 directive.
Maybe the EMC still tries to connect using port 8080? If this is true, how can I change this?
Any suggestions?
Thanks in advance
Stephan

You can create the following package as SYS, and then use the setHTTPPort procedure to change the Port Number...
create or replace view DATABASE_SUMMARY
as
select d.NAME, p.VALUE "SERVICE_NAME", i.HOST_NAME, n.VALUE "DB_CHARACTERSET"
from v$system_parameter p, v$database d, v$instance i, nls_database_parameters n
where p.name = 'service_names'
and n.parameter='NLS_CHARACTERSET';
show errors
grant select on DATABASE_SUMMARY to public
alter session set current_schema = XDB
create or replace package XDB_CONFIGURATION
AUTHID CURRENT_USER
as
procedure setHTTPport (PORT_NUMBER number);
procedure setFTPport (PORT_NUMBER number);
function getDatabaseSummary return xmltype;
procedure folderDatabaseSummary;
end XDB_CONFIGURATION;
show errors
create or replace package body XDB_CONFIGURATION as
FTP_XPATH varchar2(256) := '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port';
HTTP_XPATH varchar2(256) := '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port';
function getDatabaseSummary
return XMLType
as
summary xmltype;
dummy xmltype;
begin
select dbms_xdb.cfg_get()
into dummy
from dual;
select xmlElement
"Database",
XMLAttributes
x.NAME as "Name",
extractValue(config,'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port') as "HTTP",
extractValue(config,'/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port') as "FTP"
xmlElement
"Services",
xmlForest(SERVICE_NAME as "ServiceName")
xmlElement
"NLS",
XMLForest(DB_CHARACTERSET as "DatabaseCharacterSet")
xmlElement
"Hosts",
XMLForest(HOST_NAME as "HostName")
xmlElement
"VersionInformation",
( XMLCONCAT
(select XMLAGG(XMLElement
"ProductVersion",
BANNER
)from V$VERSION),
(select XMLAGG(XMLElement
"ProductVersion",
BANNER
) from ALL_REGISTRY_BANNERS)
into summary
from SYS.DATABASE_SUMMARY x, (select dbms_xdb.cfg_get() config from dual);
summary := xmltype(summary.getClobVal());
return summary;
end;
procedure folderDatabaseSummary
as
result boolean;
targetResource varchar2(256) := '/sys/databaseSummary.xml';
xmlref ref xmltype;
begin
begin
dbms_xdb.deleteResource(targetResource,dbms_xdb.DELETE_FORCE);
exception
when others then
null;
end;
select make_ref(DATABASE_SUMMARY,'DATABASE_SUMMARY')
into xmlref
from DATABASE_SUMMARY;
result := dbms_xdb.createResource(targetResource,xmlref);
dbms_xdb.setAcl(targetResource,'/sys/acls/bootstrap_acl.xml');
end;
procedure setXDBport(PORT_XPATH varchar2, PORT_NUMBER number)
as
config XMLType;
begin
config := dbms_xdb.cfg_get();
select updateXML(config, PORT_XPATH, PORT_NUMBER)
into config
from dual;
dbms_xdb.cfg_update(config);
commit;
dbms_xdb.cfg_refresh();
end;
-- Create the setHTTPport and setFTPport procudures
procedure setHTTPport (PORT_NUMBER number)
as
begin
setXDBport(HTTP_XPATH || '/text()', PORT_NUMBER);
end;
procedure setFTPport(PORT_NUMBER number)
as
begin
setXDBport(FTP_XPATH || '/text()', PORT_NUMBER);
end;
end XDB_CONFIGURATION;
show errors
create or replace view DATABASE_SUMMARY of xmltype
with object id
'DATABASE_SUMMARY'
as select xdb_configuration.getDatabaseSummary() from dual
show errors
alter package XDB_CONFIGURATION compile
show errors
alter view DATABASE_SUMMARY compile
show errors
grant select on DATABASE_SUMMARY to public
create or replace trigger NO_DML_OPERATIONS_ALLOWED
instead of insert or update or delete on DATABASE_SUMMARY
begin
null;
end;
show errors
create or replace public synonym XDB_CONFIGURATION for XDB_CONFIGURATION
grant execute on XDB_CONFIGURATION to public
call xdb_configuration.folderDatabaseSummary()
set echo on
set long 10000
select xdburitype('/sys/databaseSummary.xml').getXML() from dual
alter session set current_schema = SYS

Similar Messages

  • Getting ORA-22805 when trying to load XML file using SQLLDR

    I'm trying to learn the basics of XML since we'll be getting XML files in the near future. I'm using one of the sample schemas that comes with XMLSPY. I loaded this schema into an 11g Oracle DB using XMLSPY:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XML Spy v4.0 NT beta 1 build Jun 13 2001 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ipo="http://www.altova.com/IPO" targetNamespace="http://www.altova.com/IPO" elementFormDefault="unqualified" attributeFormDefault="unqualified">
         <annotation>
              <documentation>
    International Purchase order schema for Example.com
    Copyright 2000 Example.com. All rights reserved.
    </documentation>
         </annotation>
         <!-- include address constructs -->
         <include schemaLocation="address.xsd"/>
         <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
         <element name="comment" type="string"/>
         <complexType name="PurchaseOrderType">
              <sequence>
                   <element name="shipTo" type="ipo:Address"/>
                   <element name="billTo" type="ipo:Address"/>
                   <element ref="ipo:comment" minOccurs="0"/>
                   <element name="Items" type="ipo:Items"/>
              </sequence>
              <attribute name="orderDate" type="date"/>
         </complexType>
         <complexType name="Items">
              <sequence>
                   <element name="item" minOccurs="0" maxOccurs="unbounded">
                        <complexType>
                             <sequence>
                                  <element name="productName" type="string"/>
                                  <element name="quantity">
                                       <simpleType>
                                            <restriction base="positiveInteger">
                                                 <maxExclusive value="100"/>
                                            </restriction>
                                       </simpleType>
                                  </element>
                                  <element name="price" type="decimal"/>
                                  <element ref="ipo:comment" minOccurs="0"/>
                                  <element name="shipDate" type="date" minOccurs="0"/>
                             </sequence>
                             <attribute name="partNum" type="ipo:Sku"/>
                        </complexType>
                   </element>
              </sequence>
         </complexType>
         <simpleType name="Sku">
              <restriction base="string">
                   <pattern value="\d{3}-[A-Z]{2}"/>
              </restriction>
         </simpleType>
    </schema>
    Then I created an XMLType table:
    CREATE TABLE purchaseOrder OF XMLType
    XMLSCHEMA "ipo.xsd" ELEMENT "purchaseOrder"
    I'm trying to load the sample XML file ipo.xml into purchaseOrder using SQLLDR. This is ipo.xml:
    <?xml version="1.0"?>
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Mr. Nobody (Altova GmbH) -->
    <ipo:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ipo="http://www.altova.com/IPO" orderDate="1999-12-01" xsi:schemaLocation="http://www.altova.com/IPO
    ipo.xsd">
         <shipTo export-code="1" xsi:type="ipo:EU-Address">
              <ipo:name>Helen Zoe</ipo:name>
              <ipo:street>47 Eden Street</ipo:street>
              <ipo:city>Cambridge</ipo:city>
              <ipo:postcode>126</ipo:postcode>
         </shipTo>
         <billTo xsi:type="ipo:US-Address">
              <ipo:name>Robert Smith</ipo:name>
              <ipo:street>8 Oak Avenue</ipo:street>
              <ipo:city>Old Town</ipo:city>
              <ipo:state>AK</ipo:state>
              <ipo:zip>95819</ipo:zip>
         </billTo>
         <Items>
              <item partNum="833-AA">
                   <productName>Lapis necklace</productName>
                   <quantity>2</quantity>
                   <price>99.95</price>
                   <ipo:comment>Need this for the holidays!</ipo:comment>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="748-OT">
                   <productName>Diamond heart</productName>
                   <quantity>1</quantity>
                   <price>248.90</price>
                   <ipo:comment>Valentine's day packaging.</ipo:comment>
                   <shipDate>2000-02-14</shipDate>
              </item>
              <item partNum="783-KL">
                   <productName>Uncut diamond</productName>
                   <quantity>7</quantity>
                   <price>79.90</price>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="238-KK">
                   <productName>Amber ring</productName>
                   <quantity>3</quantity>
                   <price>89.90</price>
                   <ipo:comment>With no inclusions, please.</ipo:comment>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="229-OB">
                   <productName>Pearl necklace</productName>
                   <quantity>1</quantity>
                   <price>4879.00</price>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="128-UL">
                   <productName>Jade earring</productName>
                   <quantity>5</quantity>
                   <price>179.90</price>
                   <shipDate>2000-02-14</shipDate>
              </item>
         </Items>
    </ipo:purchaseOrder>
    This is what's in the control file:
    LOAD DATA
    INFILE *
    INTO TABLE purchaseOrder TRUNCATE
    xmltype(xmldata)
    FIELDS
    xmldata LOBFILE (CONSTANT ipo.xml)
    BEGINDATA
    0
    The load fails with:
    Record 1: Rejected - Error on table PURCHASEORDER.
    ORA-22805: cannot insert NULL object into object tables or nested tables
    Another question I have is, how do we know how many records (0's) to specify in the control file? In this case there's only one but when real files are used we won't know how many are in the file.
    Thanks for your help!

    The concept was "Don't use SQL*Loader to parse XML".
    You can use SQL*Loader to load an entire XML document into the DB. That is fine. You can do the same via BFILENAME to read in files from disk as well.
    If you want to parse XML, do that from within Oracle via PL/SQL and/or SQL. The solution depends upon your version of Oracle and what is good enough for you in terms of performance.
    So the basics are
    a) How am I getting the information?
    b) How am I getting in into Oracle?
    c) How do I want to parse it?
    As I see the schema, it only allows for one ipo:purchaseOrder node in the document, since that is the root node. If you have multiple in the incoming file, you no longer have valid XML, both per the schema and because you have no single root node. You have an XML fragment, which must be treated different.
    Just trying to understand the question since I now realize it does not agree with what the schema in your initial example shows.

  • ORA-03113 when trying to connect to database

    RDBMS Version:: 9.2.0.6
    Operating System and Version:: Win2003 Small Business Server
    Error Number (if applicable):: ORA-03113
    Server Net Version:: 9.2.0.6
    Client Operating System and Version:: Solaris10
    Client Net Version:: 2.1.3
    ORA-03113 when trying to connect to database
    I've currently a 7.1.3 client on SUN Solaris (5.10 Generic_118844-26 i86pc i386 i86pc) where I want to connect to the 9.2.0.6 database on a Win2003 Server hardware.
    When i try to connect via SQL*Plus (Release 3.1.3.4.1), I get ORA-03113. Looking into the listener resp. alertfile on the server, I can see that the connectiorequest is recognized, but immediately answered by an ORA-0600, producing also trc-files.
    listener: 25-MAI-2007 09:37:23 * (CONNECT_DATA=(SID=HTASQL)(CID=(PROGRAM=)(HOST=eklvpa)(USER=sat250))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.17.233.3)(PORT=32790)) * establish * HTASQL * 0
    alert: ORA-00600: internal error code, arguments: [12333], [26], [0], [115], [], [], [], []
    Activating traces on the client-side showed the following errors:
    -<ERROR>- ntus2err: sd=8, op=1, resnt[0]=511, resnt[1]=2, resnt[2]=0
    -<ERROR>- nserror: nsres: id=0, op=65, ns=12541, ns2=12560; nt[0]=511, nt[1]=2, nt[2]=0
    -<ERROR>- nsopen: unable to open transport
    -<ERROR>- nsprecv: transport read error
    -<ERROR>- nserror: nsres: id=0, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0
    -<ERROR>- osnqrc: wanted 1 got 0, type 0
    -<ERROR>- osnqper: error from osnqrc
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12537
    -<ERROR>- osnqper: ns (2) err code: 12560
    -<ERROR>- osnqper: nt main err code: 507
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqsm: send-break: failed to send OOB break...
    -<ERROR>- osnqper: error from send-marker
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12583
    -<ERROR>- osnqper: ns (2) err code: 0
    -<ERROR>- osnqper: nt main err code: 0
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqbr: returning 3113
    Can anybody help me in determining the problem ? Is there a systemtic incompatibility in connecting a 7.1.3 client to a 9.2 (or even higher) database ?

    Thanks for your reply.
    But the funny thing on this compatibility issues is, that this configuration worked before. The only thing we did, was to setup the client-PC on a new hardware with also a new operating system (upgrading from Solaris 5.8 to 5.10). And from that time we encountered this problem.
    Are there any OS-related problems known or better to say: is (was) ORACLE 7.1.3 supported on Solaris 5.10 ? Should we look for any patches which might help us ?

  • I have an iphone 4 and i just updated to ios5 and i can't get my music to stay on my iphone and i also keep getting and error message when trying to restore iphone. anyone else having this problem?

    i have an iphone 4 and i just updated to ios5 and i can't get my music to stay on my iphone and i also keep getting and error message when trying to restore iphone. anyone else having this problem?

    When you restore, which error # appears?

  • I'm receiving and error (-50) when trying to open itunes 10.5 beta on OSX 10.7 beta. Any suggestions would be greatly appreciates!

    I'm recieving and error (-50) when trying to open itunes 10.5 beta.  Any suggestions would be greatly appriciated!!!

    As a registered developer which should be the only way you have access to the iTunes and iOS BETA, you have access to direct communication with the appropriate Apple personnel and/or access to the Apple forums for registered developers.

  • Installing the latest update on my iPad - error message saying the iPad couldn't synchronize because of an internal error, and then - error message (OxE8004017) when trying to save, and then (2003) when trying to restore - nothing works anymore

    Installing the latest update on my iPad - error message saying the iPad couldn't synchronize because of an internal error, and then - error message (OxE8004017) when trying to save, and then (2003) when trying to restore - nothing works anymore - On my iPad the only thing I see is a connector cord to iTunes and nothing else.
    What can I do  ???

    Same issue for me, recently I started having issues with apps no longer being able to access my Facebook account. But the iPad Facebook account settings will not accept my password, even though the Facebook app and Safari can access my account fine. The only significant events I recall that have occurred that may have triggered this have been that via my Facebook account I killed off a lot of so called authorised connections and I changed my user name, but still have the same email address and password.
    I have tried just about every solution put forward on the net, short of a factory restore, back to new, on my iPad.
    I have also; deleted my iCloud account, deleted the Facebook app and account, deleted Safari data.
    One would think that after I have deleted my account from the iPad that it would ask for both username/email address and password, but it only asks for password, so the username is still stored somewhere that I am unable to delete.
    I also see that no one seems to have been able to get an answer from Apple. So I'm guessing they have absolutely no idea themselves.
    I am hesitant to put my username on Facebook back to what it was as Facebook only give you a few chances to change your username, then you are locked.
    I have iOS 7.1.1 installed.
    I did have a lot of respect for Apple and their devices as they just worked, but they are becoming tarnished by ignoring what seems to be a growing issue.

  • Creative Cloud has been downloaded but is showing a blank sheet and turning wheel when trying to download Photoshop test version ..

    Creative Cloud has been downloaded but is showing a blank sheet and turning wheel when trying to download Photoshop test version ..?? Whats wrong?

    follow solution 2 here, CC desktop lists applications as "Up to Date" when not installed

  • HT6114 Air and iMac crash when trying to upgrade to Mavericks from Lion.

    Air and iMac crash when trying to upgrade to Mavericks from Lion.

    Make sure your Macs can run Mavericks >  OS X Mavericks: System Requirements
    The v10.9.2 link you posted from is not an upgrade. It's an update for Mavericks only.

  • I cannot see "iPhone" in the list of interfaces when trying to configure it in the network options. Do you know how to fix it ?

    I cannot see "iPhone" in the list of interfaces when trying to configure it in the network options. Do you know how to fix it ?

    When I go to SYSTEM PREFERENCES > NETWORK i don't see "iPhone" in the list of Services (AirPort, Ethernet, etc.)
    If I try to add a new service (by clicking + ) iPhone doesn't show up in the list of "interfaces" available.
    That sounds a bit weird because iTunes can normally sync-up, backup and recover my iPhone.By the way "Personal Hotspot" is already set.

  • ORA-24327 error when trying to configure Oracle JDriver 2.0 on Commerce Server 3.5 SP1 on WLServer 6.0 SP2

    When I try to install and configure the Oracle JDriver v.2.0 to work with Commerce
    Server 3.5 SP1 and WebLogic Server 6.0 SP2, on starting up the commerce server,
    I get the exceptions that follow this message. I cannot run the dbping utility
    because it says it cannot find the BEA license file to verify that JDriver is
    licensed for use. I looked over previous discussion threads on this particular
    Oracle error, and the problem in the previous cases appears to have been use of
    the wrong TNS name. I am referencing the same TNS name that is in my server's
    tnsnames.ora file. I can connect to the database using SQLNet and the same connection
    parameters that I have set up in weblogic. My Oracle home directory is set to
    the directory just above the client install. I am trying to configure Commerce
    Server on a Sun SPARC system running Solaris 8. Any help would be greatly appreciated.
    Thanks,
    Jon Morgan
    ---------- LOGIN ERROR CODE: 24327
    java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    (WEBLOGIC/********@ARBR.intelixinc)
    at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:161)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:92)
    at com.beasys.commerce.axiom.contact.security.RDBMSDelegate.init(RDBMSDe
    legate.java:194)
    at com.beasys.commerce.axiom.contact.security.RDBMSDelegate.<init>(RDBMS
    Delegate.java:139)
    at com.beasys.commerce.axiom.contact.security.RDBMSDelegate$DFactory.get
    Instance(RDBMSDelegate.java:975)
    at com.beasys.commerce.util.Pool.<init>(Pool.java:37)
    at com.beasys.commerce.axiom.contact.security.RDBMSRealm.<init>(RDBMSRea
    lm.java:127)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at weblogic.security.acl.Realm.getRealm(Realm.java:84)
    at weblogic.security.acl.Realm.getRealm(Realm.java:62)
    at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
    a:265)
    at weblogic.security.SecurityService.initialize(SecurityService.java:123
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <Aug 7, 2001 11:50:29 AM EDT> <Emergency> <Server> <Unable to initialize the ser
    ver: 'Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.secur
    ity.RDBMSException: realm initialization failed, action 'Driver.connect', - wit
    h nested exception:
    [java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    - (WEBLOGIC/********@ARBR.intelixinc)]
    java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.security.RDBMSEx
    ception: realm initialization failed, action 'Driver.connect', - with nested
    ex
    ception:
    [java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    - (WEBLOGIC/********@ARBR.intelixinc)]
    at weblogic.security.acl.Realm.getRealm(Realm.java:91)
    at weblogic.security.acl.Realm.getRealm(Realm.java:62)
    at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
    a:265)
    at weblogic.security.SecurityService.initialize(SecurityService.java:123
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    '>
    The WebLogic Server did not start up properly.
    Exception raised: java.lang.IllegalAccessError: com.beasys.commerce.axiom.contac
    t.security.RDBMSException: realm initialization failed, action 'Driver.connect',
    - with nested exception:
    [java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    - (WEBLOGIC/********@ARBR.intelixinc)]
    java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.security.RDBMSEx
    ception: realm initialization failed, action 'Driver.connect', - with nested
    ex
    ception:
    [java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    - (WEBLOGIC/********@ARBR.intelixinc)]
    at weblogic.security.acl.Realm.getRealm(Realm.java:91)
    at weblogic.security.acl.Realm.getRealm(Realm.java:62)
    at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
    a:265)
    at weblogic.security.SecurityService.initialize(SecurityService.java:123
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception

    Wrong Forum, you want the APEX LISTENER support forum, this is the APEX support forum..
    Thank you,
    Tony Miller
    LuvMuffin Software

  • Ora-12154 when trying to connect to database from fortran application

    I am trying to connect to database and run an simple select query to a table(without any where clause) using pro*fortran code.
    the connect strng is like
    exec sql connect :uidpwd
    where uidpwd = username/password@SID
    SID and tnsnames connect string are the same.
    The fortran (profortran) code is placed in the database server and there are no errors when make is run.
    Tnsping is working fine, also i am able to conect using sql*plus and run the same query.
    Please help
    Thanks and Regards
    Nitin

    Hi Nitin
    Thanks for the helpful! With your point I'm now Pro! Great thanks.
    By the way have your seen that?
    Files such as LISTENER.ORA, TNSNAMES.ORA, SQLNET.ORA, if configured manually, or copied and edited from earlier releases of Oracle Database may have record attributes that are incompatible with Oracle Database 10g release 2. The software cannot read such files. The required record format is stream_lf and the record attributes are carriage_control and carriage_return.
    This may result in:
    Inability to start the listener
    Services not registered with the listener
    Inability to connect to other databases
    ORA-12154: TNS:could not resolve service name
    Run the following command on each file affected:
    $ DIR/FULL filename
    An output similar to the following may be displayed:
    Record format: Variable length, maximum 255 bytes
    Record attributes: Carriage return carriage control
    If the output includes the preceding entries, then run the following command:
    $ CONVERT/FDL=SYS$INPUT filename filename
    RECORD
    CARRIAGE_CONTROL CARRIAGE_RETURN
    FORMAT STREAM_LF
    ^Z
    Otherwise herewith an interesting metalink note. Doc ID:      Note:437597.1
    Subject:      Ora-12154 When Executing Pro*Fortran Code Compiled With Oracle 10g.
    Hope this will also help you...
    Cheers
    Hubert

  • ORA-20001 When trying to default page element to sysdate

    Hello,
    I have a master detail with last updated in the detail that I want to autopopulate based on sysdate.
    To do that I have Tabular Form Attributes set to sysdate and default type PL/SQL Expression or function.
    The display as is set to "Display as Text(saves state).
    I would like to format the date which I do with Column Attributes and then specify the Number Data Format.
    When I click add row in the detai part of the pagethe date is displayed as desired however then I try and
    apply the changes (save the page) I get ORA-20001: Found invalid date value, please verify date format. (Row 2)
    I have tried formatting the date in the PL/SQL expression with TO_DATE(SYSDATE,'DD-MON-YYYY HH24:MI')
    with the same result.
    If I change the element to Text Field the date is saved correctly however I don't want the user to edit the
    feild.
    Any suggestions? Using APEX 4.1

    I have the same issue.
    1. DEFAULT=SYSDATE when using format mask='DD-MON-YYYY HH24:MI:SS' causes the time portion to appear but ORA-20001 when submitting the row.
    2. Since the base column datatype is DATE, a simple to_char(SYSDATE,'DD-MON-YYYY HH24:MI:SS') obviously causes ORA-01790: expression must have same datatype as corresponding expression.
    3. A to_date(to_char(SYSDATE,'DD-MON-YYYY HH24:MI:SS'),'DD-MON-YYYY HH24:MI:SS') leads to the same error: ORA-20001: Found invalid date value, please verify date format.
    Does anyone know the trick?

  • ORA-24777 when trying to call multiple Oracle SPs...

    I had a SP in Oracle that called another SP in a SQL Server DB via DBLink. I was calling the Oracle SP from VB.NET (3.5) and because of transaction commiting I was not able to do this, so I removed the SQL SERVER SP call from inside the Oracle SP. However, I still get a ORA-24777 error: use of non-migratable database link not allowed.
    If I removed the reference to the other DB, why would I still get an error referencing the DBLINK?
    I'm using Oracle 10.2 and VB.NET (3.5).
    old SP CODE:
    I have a package called USP_VALIDATION
    In the package body, I was calling BATCH(Queue, RefNo) [a procedure in USP_VALIDATION]
    In this BATCH procedure, I would call SP_GET_BILLING_OPTION_TCIS(accNo, lclBillingOption) [note TCIS is the SQL DB and lclBillingOption would be the TCIS billing option]
    ... do something with lclBillingOption
    I changed this to the following:
    In the package body, I now call BATCH(Queue, RefNo, BillingOption)
    In this new BATCH procedured, I now DON'T call SP_GET_BILLING_OPTION_TCIS as I already retrieved it first before I call USP_VALIDATION in the .NET code
    ... do something with the BillingOption passed in as a parameter when calling BATCH.
    What I'm really trying to do is make sure that the transaction commitment/rollback is handled correctly in the following senario.
    What happened before was because the one SP was calling another SQL database via DBLINK, it was not working correctly. So we removed the DBLINK and now call the SQL database before we do any action with the Oracle SPs.
    Here is my code in .NET:
    Public Function EnrollElectricCustomer(ByVal EnrollParameters As IEnrollmentParameters) As IEnrolleSearch Implements Interfaces.IEnrollmentManager.EnrollElectricCustomer
            Dim dacRCES As New Dac.RC.EnrolleeDataService()
            Dim dacRCAS As New Dac.RC.AccountDataService()
            Dim oServiceType As IServiceType = New ServiceType(ServiceTypeEnum.Gas)
            Dim dacCSS As New Dac.Css.CssCustomerAccount
            Dim oBillingOption As IBillingOption = Nothing
            Dim business As New AccountManager
            Dim WorkQID As Long = 0
            Dim enrolleeSearch As EnrolleeSearch = Nothing
            Dim MainTranScope As TransactionScope = New TransactionScope(TransactionScopeOption.RequiresNew)
            Try
                EventLog.WriteEntry("RCIS", "Access --> EnrollElectricCustomer")
                ' comment - here I go to SQL Server to get the Billing Option instead of doing it thru DBLINK
                oBillingOption = dacRCAS.GetCurrentBillingOption(EnrollParameters.CssAccountNumber, oServiceType)
                Using MainTranScope
                    'first save the Enrollment record to the Enroll Queue
                    WorkQID = dacRCES.SaveElectricEnrollee(EnrollParameters)
                    'need to put account number needed into a collection
                    Dim oColAccounts As New Generic.List(Of IAccountRefreshRequests)
                    Dim oColCSSAccounts As New Generic.List(Of ICustomerAccount)
                    Dim oAccount As New AccountRefreshRequests
                    Dim oCustomerAccount As ICustomerAccount
                    Dim refreshstring As String = String.Empty
                    oAccount.CSSAccountNumber = EnrollParameters.CssAccountNumber
                    oAccount.CSSAccountNumberNoCheckDigit = EnrollParameters.CssAccountNumber.Substring(0, 14)
                    oAccount.CSSCheckDigit = EnrollParameters.CssAccountNumber.Substring(14, 1)
                    oAccount.ServiceType.CodeString = "E"
                    Dim rStatus As New RefreshStatus
                    rStatus.Code = StatusEnum.NewAccount
                    oAccount.Status.CodeString = rStatus.CodeString()
                    oColAccounts.Add(oAccount)
                    'call CSS passing in collection of account(s) and returning back collection of account(s)
                    oColCSSAccounts = dacCSS.GetCssAccountInfo(oColAccounts)
                    oCustomerAccount = New CustomerAccount
                    oCustomerAccount = oColCSSAccounts.Item(0)
                    refreshstring = business.BuildRefreshString(oCustomerAccount)
                    dacRCES.RefreshElectricAccount(refreshstring)
                    'once refreshed, we need to also run VALIDATION on this enrollent record...
    *' NOTE THAT THIS SP used to CALL SQL via DBLINK but no longer does....*               
                    dacRCES.ValidateElectricEnrollment(WorkQID,oBillingOption)
                    'once validated, we also have to submit the record....
                    dacRCES.SubmitElectricEnrollment(WorkQID)
                    MainTranScope.Complete()
                End Using
                If WorkQID > 0 Then
                    'now we need to retrieve the account enrollment record...
                    enrolleeSearch = dacRCES.FindEnrolleeByEnrollID(WorkQID, ServiceTypeEnum.Electric)
                End If
            Catch ex As Exception
                SendEmail.SendErrorEmail("EnrollElectricCustomer --> " & EnrollParameters.CssAccountNumber, ex.Message)
                RcCommon.WriteExceptionToLog(ex)
                Throw
            End Try
            Return enrolleeSearch
        End FunctionI'm concerned that if any one of the various calls fails, I want to rollback the ENTIRE transaction. Right now I
    a) insert the row into a table in Oracle,
    b) get detailed information on this account from another database (DB2),
    c) refresh the data in the Oracle DB on this account,
    d) validate the record added (business rules) and then when all done,
    e) to submit the account (which changes statuses for later use).
    If I insert the record but it fails at step d say, I want to rollback everything and remove the record from the Oracle table...
    Edited by: userLynx on Oct 17, 2012 6:37 AM

    EDIT1:
    You posted an edit including code while I was typing original response.
    You may find the following My Oracle Support note helpful. It applies to ODP.NET as well.
    ORA-24777 When Selecting Across a Database Link With Microsoft OLE DB Provider for Oracle [ID 397555.1]
    Just to confirm - is the database link used at all now?
    I know you said that the stored procedure is no longer called, but is the link still used for anything else?
    Also, do you have a call stack from when the exception is raised?
    Edited by: Mark Williams on Oct 17, 2012 9:53 AM

  • ORA-12514 when trying to connect as sysdba

    Hello All,
    I am using ORACLE 10g R2
    when trying to connect to SQLPUS in order to startup a database using the below commands :
    set ORACLE_SID=dbname
    C:\>sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Nov 3 10:50:13 2009
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    SQL> connect sys/password@dbname as sysdba
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    I am facing the ORA -12514
    Please advise how to solve it
    Regards,

    Hello,
    My database is defined in the tnsnames and below is the status of the listener, you can see that the "The listener supports no services"
    is it related to the problem, How can i force the listener to support my service?
    LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.4.0 - Produ
    ction
    Start Date 03-NOV-2009 10:49:34
    Uptime 0 days 1 hr. 5 min. 21 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=-----)(P
    ORT=1521)))
    The listener supports no services
    The command completed successfully

  • ORA-01034 when trying to create a database

    I successfully installed Oracle 8.1.7 on Solaris 8, but when I tried creating a database (by executing sql<SID>.sh after I ran "dbassist"), this error appeared:
    ORA-01034: Oracle not available.
    I could not use svrmgrl to do a startup because there is NO database.
    What services have to run before I can create a database?
    Thank you.
    null

    I chose "custom installation" and not to create a database during installation. There was no error when I installed the Oracle software and I modified the /etc/system (shmmax, shmmin, etc.) according to the Oracle documentation. After that, I used "dbassist" to create a database. Then the "ORA-01034: Oracle not available" appeared.
    I also tried to install Oracle with "Typical" option that is suppose to create the initial database for me. It also failed. The same error appeared when the 'Database Configuration Tools' were trying to create the database files.

Maybe you are looking for

  • CUCM 8.6.2 Recovery CD

    Hi mates, I got hanging process with my CUCM 8.6.2. I made some manipulations with root passwd, then saved files end rebooted CUCM. After that i trapped to cycling booting process with initrd (PID1). CUCM ver. -- Bootable_UCSInstall_UCOS_8.6.2.21900-

  • On my Macbook Pro, the latest version of Firefox won't recognize the "Command-W" command to close windows or the "Command-C" command to copy / paste text.

    I'm fine when I use Chrome and Safari -- but I'd rather use Firefox. I have done a clean reinstall of Firefox and I'm still having the problems. Any ideas? –Harry

  • MRP Run - Planning file entry Issue

    Dear All, We are facing one problem in MRP Run. We run MRP in the background for a plant (MDBT) System is not creating planned order for few component. I have checked all relevant setting. I found that planning file entry is missing. I would like to

  • Need Urgent help on the HR ABAP

    Hi Gurus;               I am new to the HR ABAP, i need some material so that i can build up my concepts in this area. Thanks

  • 400: Bad Request

    I am trying to get an inputStream to another servlet from a servlet. I am using standard well documented techniques for opening the connection. The getInputStream() call throws an exception as below: java.io.FileNotFoundException: Response: '400: Bad