Configuration of database error P6v7 Web Services

Hello

I try to install Web Services for P6v7 and got stuck on the configuration database. After you have entered the user name, password, etc. it doesn't give me that tell an error message
"Error: could not resolve privileged user name and password.
Listener refused the connection with the following error:
ORA-12505, TNS:listner is not currently of SID given in connect descriptor
Please check the entered information. »

I am sure that the user(PUBPRM$PM) and pass is correct. I put ORAPMDB for the name of the database, 127.0.0.1 for the address database and 1521 (default) for the port. Anything that could be wrong here?

Help, please! Thank you!

That connect you to your local computer, I guess that it is a stand-alone installation using Oracle Express edition as the data base.

If this is the case of the name of the database (SID) is XE

Tags: Oracle Applications

Similar Questions

  • Database as a Web Services provider?

    Hello!

    Could you please forgive me my silly question but...

    My client has bought and use of Oracle 10 g RDBMS.

    The customer now wants the database accessible by web service clients.

    The client thinks that this can be done with already purchased RDBMS (without Oracle Application Server). The Oracle client her cites: "database as a provider of Web Services: database operations and recovery of the data are carried out through mechanisms of Web Services" (http://www.oracle.com/technology/tech/webservices/database.html).

    However, in my opinion honest, the customer MUST install a web server. If the customer is especially insterested in the Oracle solutions, then there (in addition to already purchased RDBMS) buy WebLogic or Oracle Application Server.

    Who is right?

    Sincerely yours.
    Michail

    Michail,

    DB 10 g, you are right - the solution is to use the Services Web of PL/SQL to which OracleAS/OC4J server is essential.

    For DB 11 g, you and your client have reason. In addition to the foregoing as 10 g, there is a new feature in 11 g called Native XML DB Web within the DB Services, which does not have any Web server or ACE. See http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm

    HTH,
    Yogesh

  • Best practices for connecting to a database from a Web service

    I develop Web services that need to connect to an Oracle database. Currently, I connect to the database using jdbc as this class:

    con = DriverManager.getConnection (connectURL, "HR_DATA_READERS", "xxxxx").

    I do not like this approach because it hardcodes the connection string and account information. One of our colleagues has suggested that we use the properties file, but this leaves the user name and password in full view. Given that we can define jdbc dataources on the server of the SOA and the server offers all the nice features like pooled connection etc, is there a way to connect to the database using the data source defined the SOA rather than defining a connection server jdbc in the Web service itself? Is the best way to do it or is there still a way paste?

    Thank you

    Hi, Alix,.

    If you are JEE compatible environment. i.e. WLS 12 c, you can use resource injection approach, instead of manually coding the above proposed DS research.

    More information on injected resources and you will find here - http://docs.oracle.com/cd/E19226-01/820-7627/6nisfjmbl/index.html

    "For example, you can use this tutorial - Servlet JDBC DataSource resource Injection" Open tutorials

    Take a look at sections 5.3 and 5.4 only, which is what the code should look like and how to configure resource in the web.xml file.

    And always use finally to try to close the db connection, otherwise in the case of exceptions, as it is not returned to the pool and at some point he's going to get exhausted.

    Hope this helps,

    A.

  • is it possible to return a figure to the database from a web service

    I have a REST web services configuration that has 4 values

    Is it possible to use a db call to enter these 4 values that can be used in an insert in the database?

    Thank you

    Yes it is available: [url http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/t_dburi.htm#i1007928] 10.2 documentation packages and Types.

    You must copy my blog instead: my answer was typo with a T too much ;-)

    Edit: Fixed the URL

    Published by: Kim Berg Hansen on October 19, 2012 10:00

  • Is it possible to set configuration options VMsafe via vSphere Web Service SDK?

    Is it possible to define VMsafe configuration options via the web service of vSphere SDK?

    I noticed that the options in question are 'OptionValue's contained in the property config.extraConfig of the virtual machine, so I tried to edit them using the method ReconfigVM_Task of the SOAP API.

    This fails however, even if the SOAP request appears to be valid:

    & lt;? XML version = "1.0"? & gt;

    " & lt; env:Envelope xmlns:env = ' http://schemas.xmlsoap.org/SOAP/envelope/ "& gt; .

    & lt; env:header / & gt;

    & lt; env:body & gt;

    & lt; N1:ReconfigVM_Task xmlns:n1 = "urn: vim25" & gt;

    & lt; N1:_this type = 'VirtualMachine' & gt; VM - 448 & lt; / n1:_this & gt;

    & lt; N1:spec xsi: type = "VirtualMachineConfigSpec" & gt;

    & lt; N1:extraConfig xsi: type = "n1:OptionValue" & gt;

    & lt; N1:key & gt; vmsafe.enable & lt; / n1:key & gt;

    & lt; N1: value & gt; FAKE & lt; / n1: value & gt;

    & lt; / n1:extraConfig & gt;

    & lt; / n1:spec & gt;

    & lt; / n1:ReconfigVM_Task & gt;

    & lt; / env:Body & gt;

    & lt; / env:Envelope & gt;

    This query generates the following error:

    & lt;? XML version = "1.0" encoding = "UTF-8"? & gt;

    " & lt; soapenv:Envelope xmlns:soapenc = ' http://schemas.xmlsoap.org/SOAP/encoding/ "xmlns:soapenv =" " http://schemas.xmlsoap.org/SOAP/envelope/ "container =" " http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance "& gt; .

    & lt; soapenv:body & gt;

    & lt; soapenv:fault & gt; & lt; faultcode & gt; ServerFaultCode & lt; / faultcode & gt; & lt; faultstring & gt; invalid argument: value & lt; / faultstring & gt; & lt; retail & gt; & lt; InvalidRequestFault xmlns = "urn: vim25" xsi: type = "InvalidRequest" / & gt; & lt; / detail & gt; & lt; / soapenv:Fault & gt;

    & lt; / soapenv:Body & gt;

    & lt; / soapenv:Envelope & gt;

    For help in resolving this issue will be greatly appreciated.

    I'm glad it worked! Don't forget awareness useful or correct points

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Perform the database in the web service REMAINS PUT

    Hello.

    We use the APEX 4.2.5 and ADR 2.0.9.

    We want to create the web service that would insert data into the database.

    Insertion of data, we use a long procedure.

    Is it possible to call, use this procedure in the REST web service? As:

    Select schema.procedure_name (: p_worker,: p_time,: p_line,: p_ip,: p_manner) twice;

    Thank you.

    Kind regards

    Dejan

    Hello.

    Solved the problem with the procedure - that calls the procedure of apex REST.

    Kind regards

    Dejan

  • Synchronization of database error identity AquaLogic Service

    Hello
    I have install ALUI6.5, ALBPM 6.0, using portal and Service identity ALI with Oracle10gR2 database database database. And I do this according to 'Integration with AquaLogic Interaction' in the url http://edocs.bea.com/albsi/docs60/config_wls/index.html. When I start the Windows identity Service, the service.log write this:

    ----------------------------------------------------------------------

    02:14:30, 687 ERROR cannot execute sql = [INSERT IN DSGROUP (UUID, NAME, DESCRIPTION, EXTERNALID, CREATION, CREATEDBY, LASTMODIFIED, LASTMODIFIEDBY, DELETED, DELETEDBY) VALUES (?,?,?,?,?,?,?,?,?,?)] params =
    INFO | JVM 1 | 2009-04-06 10:14:30 | java.sql.SQLException: [plumtree] [Oracle JDBC Driver] [Oracle] ORA-01483: invalid length for the DATE or NUMBER variable binding
    INFO | JVM 1 | 2009-04-06 10:14:30 |
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BaseExceptions.createException (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BaseExceptions.getException (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.oracle.OracleImplStatement.execute (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BaseStatement.commonExecute (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BaseStatement.executeUpdateInternal (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BasePreparedStatement.executeUpdate (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:335)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.executeUpdate(AbstractPortalSink.java:521)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.executeUpdate(AbstractPortalSink.java:538)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.insert(AbstractPortalSink.java:311)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.GroupPortalSink.insert(GroupPortalSink.java:275)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.processObjects(AbstractPortalSink.java:262)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.sourcePoll(AbstractPortalSink.java:174)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at org.openadaptor.adaptor.AbstractSimpleSource.runPoll (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at org.openadaptor.adaptor.AbstractSimpleSource.run (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.run(AbstractPortalSink.java:137)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at java.lang.Thread.run (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 | 02:14:30, 703 ERROR cannot execute sql = [INSERT IN DSPERSON (UUID, COMMONNAME, EXTERNALID, MANAGERID, TELEPHONENUMBER, TITLE, EMPLOYEETYPE, PREFERREDLANGUAGE, MAIL, HOMEPHONE, NUMEROBUREAU, EMPLOYEENUMBER, PAGER, DISPLAYNAME, MOBILE, first NAME, INITIALS, DEPARTMENTNUMBER, CREATION, CREATEDBY, LASTMODIFIED, LASTMODIFIEDBY, DELETED, DELETEDBY) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)] params =
    INFO | JVM 1 | 2009-04-06 10:14:30 | java.sql.SQLException: [plumtree] [Oracle JDBC Driver] [Oracle] ORA-01483: invalid length for the DATE or NUMBER variable binding
    INFO | JVM 1 | 2009-04-06 10:14:30 |
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BaseExceptions.createException (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BaseExceptions.getException (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.oracle.OracleImplStatement.execute (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BaseStatement.commonExecute (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BaseStatement.executeUpdateInternal (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.jdbc.base.BasePreparedStatement.executeUpdate (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:335)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.executeUpdate(AbstractPortalSink.java:521)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.executeUpdate(AbstractPortalSink.java:538)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.insert(AbstractPortalSink.java:311)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.processObjects(AbstractPortalSink.java:262)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at com.plumtree.hydrogen.directory.portalsync.AbstractPortalSink.sourcePoll(AbstractPortalSink.java:174)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at org.openadaptor.adaptor.AbstractSimpleSource.runPoll (unknown Source)
    INFO | JVM 1 | 2009-04-06 10:14:30 |      at org.openadaptor.adaptor.AbstractSimpleSource.run (unknown Source)

    --------------------------------------------------------------------------------------

    I think that what happens when to insert in the data from the database to the ALI Identity database portal, but how to solve this problem? THX.

    Hi Jet,

    While the BPM 6.0 is approved for use with ALUI 6.1 MP1, you will need to use the PTIDS service to integrate BPM users. However if you are looking to integrate the BPM with ALUI 6.5 MP1/WCI 10 gR 3 then you should use BPM 10 gR 3 because he has the ability to use the new directory instead of the old PTIDS ALUI Service.

    Thank you

  • Error when Web service called Linux (CentOS5) server and CF8

    coldfusion.jsp.CompilationFailedException: errors reported by Java compiler: jikes: error while loading shared libraries: libstdc ++. so.5: cannot open shared object file: no such file or directory.

    coldfusion.jsp.CompilationFailedException: errors reported by Java compiler: jikes: error while loading shared libraries: libstdc ++. so.5: cannot open shared object file: no such file or directory.

  • Impossible to activate the web services photosmart7515

    On the web services on my printer I get

    e-mail connection error

    ePrint connection error

    Web services connection error

    What can I do?

    Hi Catjoy36,

    Thanks for the reply.  It seems that we have to take steps more.  Follow the steps below, and once you complete the steps, then you can follow the steps above.

    1. go in the front panel of your printer.

    2. Select the icon wireless on your printer.

    3. Select settings.

    4. highlight and select restore default network settings.

    5. click OK to restore default values.

    6. now, select Wireless and go through the wireless configuration wizard.

    Let me know how it goes.

  • 7520 photosmart all-in-One: sudden problem connecting to web services

    I used my HP Photosmart 7520 years without problem scanning to e-mail. Now I get "Unable to connect to Web Services" error message. I also have a server connection error appear together try to print selections on the screen of the printer - such as the activities of crossword puzzles, sudoku and children.  How can I fix it.

    Hello

    From the Configuration menu, select Web Services Configuration.

    Select Delete Web Services and confirm any command prompt.

    Now re - open the Apps option and follow the steps to reactivate Web Services.

    Once you're done open the scanning to Email application and follow the steps to reactivate Web Services.

    Provide your own e-mail address, and then type the PIN Code received in your email address and try scanning.

    Kind regards

    Shlomi

  • By using the web service ActionsService to load the account data

    Hello

    We are looking to automate the loading data of an EPM - HFM Application accounts.

    We wre able to charge through the front-end server. About Automation, we were able to configure GOSA strategies for the web service, create the native user in console weblogic and import and use the public key of client web service proxy.

    The URL of the wsdl file that we ask is http://192.168.50.21:7363 / oracle-EMP-fm-Web services/ActionsService? wsdl

    The method we are trying to call is iActionsService.loadData ("clustername", "name the Application", "E:\\testpad\\Hyperion\\data\\DATA.txt", null, ",", DataLoadMode.MERGE, false, false);

    The errors below are found in the file log immediately after the race. Please help us find what needs to be done in the setting of these errors. Are we sending the right params to the web service?

    Do we still need to make other changes to weblogic/em to make this work? Please suggest.

    Oracle EPM-edition of Fusion

    version - 11.1.2.4.0.79

    Thank you and best regards,

    Guna

    Newspapers, we find that

    We might be able to connect to the application - Session is created with the Session id: 5e95de6f-e828-4121-8765-36c186e72355

    An unexpected error has occurred-

    oracle.epm.fm.common.exception.HFMException: EPMHFM-65536: an unexpected error has occurred.

    at oracle.epm.fm.common.exception.ExceptionHelper.handleException(ExceptionHelper.java:45)

    at oracle.epm.fm.domainobject.loadextract.LoadExtractOM.loadData(LoadExtractOM.java:281)

    Error EPMHFM-65925

    java.lang.NullPointerException

    at org.apache.thrift.protocol.TCompactProtocol.writeString(TCompactProtocol.java:325)

    at oracle.epm.fm.thrift.protocol.TMultiplexedProtocol.writeString(TMultiplexedProtocol.java:112)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args$ loadData_argsStandardScheme.write(LoadExtractHandlerService.java:10236)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args$ loadData_argsStandardScheme.write(LoadExtractHandlerService.java:10152)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args.write(LoadExtractHandlerService.java:10087)

    at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:63)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ Client.send_loadData (LoadExtractHandlerService.java:639)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ Client.loadData (LoadExtractHandlerService.java:629)

    at oracle.epm.fm.domainobject.loadextract.LoadExtractOM.loadData(LoadExtractOM.java:269)

    at oracle.epm.fm.actions.LoadDataAction.execute(LoadDataAction.java:100)

    at oracle.epm.webservices.fm.ActionsService.LoadData(ActionsService.java:315)

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

    Post edited by: 2837182

    Got it working now.

    Case of a brain freeze. The data file must be located on the server.

  • Advertise the package as a web service

    Hi all
    I used the version of JDeveloper: Studio Edition Version 11.1.1.5.0

    I had to publish a package of database as a web service.

    so I created a connection to the database in JDeveloper and then sailed to the packages and right clicked on the packaging and you click on publish it as a web service.
    then deployed to weblogic server code, created the data source required in the weblogic with a size 15 connection.

    It went well for a few days, and then I started to receive an error indicating that the connection pool is exhausted and that he cannot get a new connection of it.
    see that the web service is still in test phase and there is not a lot of active users at the same time (less), it was weird that this happens.

    After inspecting the code generated by JDeveloper, find that the code closes the connection only if there was no error in the call to the database.
    something like
            try{
                __onnScopeMethod=__dataSource.getConnection(); 
                java.lang.String __jRt_3=xparam;
                oracle.xdb.XMLType __jRt_2=null;
                __jRt_2=null;
                if(__jRt_3!=null){
                    __jRt_2=oracle.xdb.XMLType.createXML(__onnScopeMethod,__jRt_3);
                }
                __jRt_0=super._callDatabaseMethod(__jRt_2,__onnScopeMethod);
    
                if(__jRt_0==null){
                    __jRt_0_x=null;
                } else {
                    long __stringLen=__jRt_0.length();
                    if(__stringLen>Integer.MAX_VALUE){
                        throw new java.sql.SQLException("CLOB too large: "+__stringLen);
                    } else {
                        __jRt_0_x=__jRt_0.getSubString(1L,(int)__stringLen);
                    }
                }
                __onnScopeMethod.close();
    
            } catch(java.sql.SQLException except){
                except.printStackTrace();
                throw new java.rmi.RemoteException(except.getClass().getName()+": "+
                                                   except.getMessage());
            }
    which translates the leakage of resources.

    I have modified the code and deployed.

    what I want to ask is: is this the correct behavior? or is this an error in the earlier version of jdeveloper?

    After you deploy the modified code, I wasn't the same problem again, so should I file a bug report or what?

    This is the final version of the code after change:

              Connection  __onnScopeMethod=null;
         try{
                __onnScopeMethod=__dataSource.getConnection();
                java.lang.String __jRt_3=xparam;
                oracle.xdb.XMLType __jRt_2=null;
                __jRt_2=null;
                if(__jRt_3!=null){
                    __jRt_2=oracle.xdb.XMLType.createXML(__onnScopeMethod,__jRt_3);
                }
                __jRt_0=super._callDatabaseMethod(__jRt_2,__onnScopeMethod);
    
                if(__jRt_0==null){
                    __jRt_0_x=null;
                } else {
                    long __stringLen=__jRt_0.length();
                    if(__stringLen>Integer.MAX_VALUE){
                        throw new java.sql.SQLException("CLOB too large: "+__stringLen);
                    } else {
                        __jRt_0_x=__jRt_0.getSubString(1L,(int)__stringLen);
                    }
                }
                __onnScopeMethod.close();
    
            } catch(java.sql.SQLException except){
                except.printStackTrace();
                throw new java.rmi.RemoteException(except.getClass().getName()+": "+
                                                   except.getMessage());
            }finally{
              if(__onnScopeMethod!=null && !__onnScopeMethod.isClosed()){
                   __onnScopeMethod.close();
              }
           }
    
  • CRMOD insert web service does not

    I'm trying to insert a new CRMOD account via web services with different external system but ID the same name and location. On these accounts "duplicate", I get the following error:

    "System.Web.Services.Protocols.SoapException: example of the integration component 'Account', with the user key", a record with identical values already exists in the database of Siebel.""

    Is there a setting that I can add to the web service to only watch the external system id when it is inserted.

    Any suggestions?

    Hello

    No, there is no setting that can force you to make sure that only ExternalSystemID is meant and not the account name field and location.

    This is the data of the Account object model, to manage the uniqueness of the amongst files CRM expects that account name and location is different from existing records.

    Usually these cases can happen by consequence system autour with the location field by making it unique every time.

    Hope this helps

  • How to configure a web service primavera to return the data in the second database?

    Hello world


    We have P6 with WS first deployment on a single weblogic domain server. The first WS returns the first instance of database data.

    Then deployed to the WS second tip on a weblogic domain server separated with a different port. Set up the second WS with < WS2_INSTALL_HOME > / bin/dbconfig.sh, creating a new branch a configuration that specifies one second instance of the database. However, this configuration is ignored, and the second web services return data from the database.

    We have a single domain, including notably the following servers:

    Name / host / Port / deployments

    P6 / localhost / 0001 / P6 (v8.3), p6ws1 (v8.3)

    p6ws2 / localhost / 0002 / p6ws2 (v8.3)

    We have now two different files BREBootstrap.xml.

    P6 BREBootstrap.xml:

    < database >

    < URL > JDBC:Oracle:thin:@db1:1521:db1 < / URL >

    < user name > pubuser < / name >

    password <>anycriptopass1 < / password >

    oracle.jdbc.OracleDriver < driver > < / driver >

    < PublicGroupId > 1 < / PublicGroupId >

    < / data >

    < CfgVersion > 8.330 < / CfgVersion >

    <>configurations

    < name BRE = 'P6 Config_DB1"instances ="1"logDir ="anydir, P6EPPM, p6, PrimaveraLogs"/ >

    < / configuration >

    p6ws2 BREBootstrap.xml:

    < database >

    < URL > JDBC:Oracle:thin:@DB2:1521:DB2 < / URL >

    < user name > pubuser < / name >

    password <>anycriptopass2 < / password >

    oracle.jdbc.OracleDriver < driver > < / driver >

    < PublicGroupId > 1 < / PublicGroupId >

    < / data >

    < CfgVersion > 8.330 < / CfgVersion >

    <>configurations

    < name BRE = 'P6 Config_DB2"instances ="1"logDir ="anydir, P6EPPM, ws2, PrimaveraLogs"/ >

    < / configuration >

    "P6 Config_DB1" and "P6 Config_DB2" including the property database for the database 1 and 2 respectively.

    How to set up a second web service to return the data to the second database?


    Thanks in advance!


    Kind regards

    Dmitry

    So, answer oracle support:

    Looks like it is in the documentation, Web Services cannot be configured in this way as the other modules. See the following topics:

    BUG 19516437 - Is it POSSIBLE TO hardcode a DEPLOYMENT of SERVICES WEB P6 to an INSTANCE of DATABASE? (ask if this is possible)

    BUG 19579735 - FOR BEING ABLE to hardcode A P6 WEB SERVICES DEPLOYMENT to A DATABASE INSTANCE (corresponding improvement because it can be done).

    The problem has been resolved by the following:

    1 create the WebLogic domain.

    2 P6 and p6ws deployed on managed servers.

    3 configuration P6 uses the second instance of database and P6 has not begun.

    4 result: the p6ws (from additional domain WebLogic) returns data for the second instance of the database.

    Kind regards

    Dmitry

  • the RESTful web service and database NoSql.

    I configured a database version Oracle NoSQL 3.0.5.

    I wrote the below 12 c JDev RestFul web service.

    the Rest works well, but when running query (GET) it returns the following error.

    I don't know how to correct it. Need help

    package store;

    import com.hp.hpl.jena.query.Query;
    import com.hp.hpl.jena.query.QueryExecution;
    import com.hp.hpl.jena.query.QueryExecutionFactory;
    import com.hp.hpl.jena.query.QueryFactory;
    import com.hp.hpl.jena.query.ResultSet;
    import com.hp.hpl.jena.query.ResultSetFormatter;
    import com.hp.hpl.jena.query.Syntax;
    import com.hp.hpl.jena.rdf.model.Model;

    Import javax.ws.rs.GET;
    Import javax.ws.rs.Path;
    Import javax.ws.rs.Produces;

    Import oracle.kv.impl.api.ops.Get;

    Import oracle.rdf.kv.client.jena.OracleModelNoSql;
    Import oracle.rdf.kv.client.jena.OracleNoSqlConnection;

    @Path ("store")
    public class StoreResourceHandle {}
    public StoreResourceHandle() {}
    Super();
    }

    public static String queryStoreNoSQL() {}
    String StoreName = "semep;
    String HostName = 'localhost ';
    String HostPort = "5000";
    String szModelName = "http://example.org/Captation";
    String ModelName = "http://Repository";
    OracleNoSqlConnection conn = OracleNoSqlConnection.createInstance (StoreName, HostPort, HostName);
    Model = OracleModelNoSql.createOracleModelNoSql (ModelName, conn);

    String szQuery = "SELECT? s? p? o\n +.
    "where {\n" +
    "  { ?s  ?p  ?o}\n" +
    "}";


    System.out.println ("Execute query" + szQuery);

    Query query = QueryFactory.create (szQuery, Syntax.syntaxARQ);
    QueryExecution qexec = QueryExecutionFactory.create (query, model);
    ResultSet results = qexec.execSelect ();
    String textResults = ResultSetFormatter.asText (results);

    qexec. Close();
    Model.Close ();
    Conn.Dispose ();
    Return textResults;
    }


    @GET
    @Produces("text/plain")
    public String getStoreQuery() {}
    String result = StoreResourceHandle.queryStoreNoSQL ();
    System.out.println ("result");
    return the result;
    }

    }

    [Running the application on IntegratedWebLogicServer StoreResource...]
    [21: 45:44] StoreWebApp.war of Module Web recognized in the project Store.jpr
    [Another instance of the storeresource application is running on the server.  JDeveloper redeploy the application.]
    [21: 45:44]-deployment began.  ----
    [21: 45:44] the target platform's (Weblogic 12.x).
    [21: 45:44] recovery of the existing application information
    [21: 45:44] analysis of the dependence running...
    [21: 45:44] deployment 2 profiles...
    [21: 45:44] wrote on the Web for C:\Users\memus\AppData\Roaming\JDeveloper\system12.1.2.0.40.66.68\o.j2ee\drs\StoreResource\StoreWebApp.war application Module
    [21: 45:44] wrote the Module Enterprise Application to C:\Users\memus\AppData\Roaming\JDeveloper\system12.1.2.0.40.66.68\o.j2ee\drs\StoreResource
    [21: 45:44] application is not transferred
    [21: 45:44] the constriction of context following URLS have been defined and can be used as a starting point for testing your application:
    [21: 45:44] http://localhost:7101 / StoreResource-store-context-root
    [21: 45:44] time to deployment: 1 second
    [21: 45:44]-deployment is complete.  ----
    Run start time: 554 ms.
    [Application running on IntegratedWebLogicServer StoreResource]

    Target application w- http://localhost:7101/StoreResource-Store-context-root/resources/application.wadl

    Target URL - http://localhost:7101 / StoreResource-store-context-root/resources/store
    < 25 may 2014 21: 45 CEST > < error > < com.sun.jersey.spi.container.ContainerResponse > < BEA-000000 > < exception contained in MappableContainerException could not be mapped to a response, re - throw to the HTTP container
    java.lang.NoClassDefFoundError: oracle/rdf/kv/customer/jena/OracleNoSqlConnection
    to the store. StoreResourceHandle.queryStoreNoSQL (StoreResourceHandle.java:41)
    to the store. StoreResourceHandle.getStoreQuery (StoreResourceHandle.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    Truncated. check the log file full stacktrace
    >
    < 25 may 2014 21: 45 CEST > < error > < HTTP > < BEA-101017 > < [ServletContext@10446167[app:StoreResource module: StoreResource-store-context-spec: null, path root-version: 3.0], request: [ weblogic.servlet.internal.ServletRequestImpl@1e35577
    GET StoreResource-Store-context-root/resources/store HTTP/1.1
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10: 00
    Accept: text/plain
    X HTTPAnalyzer-Rules: 1@localhost:8099

    Root cause]] of ServletException.
    java.lang.NoClassDefFoundError: oracle/rdf/kv/customer/jena/OracleNoSqlConnection
    to the store. StoreResourceHandle.queryStoreNoSQL (StoreResourceHandle.java:41)
    to the store. StoreResourceHandle.getStoreQuery (StoreResourceHandle.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    Truncated. check the log file full stacktrace
    >
    < 25 may 2014 21: 45 CEST > < opinion > < Diagnostics > < BEA-320068 > < Watch "UncheckedException" in the module "Module-FMWDFW" with severity "Notice" on the server "DefaultServer" triggered on 25 may 2014 21: 45 CEST. Details of the notification:
    WatchRuleType: Journal
    WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))
    WatchData: DATE = may 25, 2014 21: 45 CEST SERVER = DefaultServer MESSAGE = [ServletContext@10446167[app:StoreResource module: StoreResource-store-context-spec: null, path root-version: 3.0], request: [ weblogic.servlet.internal.ServletRequestImpl@1e35577
    GET StoreResource-Store-context-root/resources/store HTTP/1.1
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10: 00
    Accept: text/plain
    X HTTPAnalyzer-Rules: 1@localhost:8099

    Root cause]] of ServletException.
    java.lang.NoClassDefFoundError: oracle/rdf/kv/customer/jena/OracleNoSqlConnection
    to the store. StoreResourceHandle.queryStoreNoSQL (StoreResourceHandle.java:41)
    to the store. StoreResourceHandle.getStoreQuery (StoreResourceHandle.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    to com.sun.jersey.spi.container.JavaMethodInvokerFactory$ 1.invoke(JavaMethodInvokerFactory.java:60)
    to com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ TypeOutInvoker._dispatch (AbstractResourceMethodDispatchProvider.java:185)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
    at weblogic.jaxrs.server.portable.servlet.ServletContainer.service(ServletContainer.java:218)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.j2ee.ws.server.jaxrs.TenantServletFilter.doFilter(TenantServletFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3367)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3333)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '1' for the queue: MSGID "(self-adjusting) weblogic.kernel.Default" = BEA - 101017 MACHINE = mustapha TXID = the CONTEXTID = 6a226c0c-6115-47df-833a-8465cd21cc68-0000002f TIMESTAMP = 1401047153802
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    < 25 may 2014 21: 46 CEST > < emergency > < oracle.dfw.incident > < BEA-000000 > < 65 incident created with the key to problem "DFW-99998 [java.lang.NoClassDefFoundError] [oracle.j2ee.ws.server.jaxrs.TenantServletFilter.doFilter] [StoreResource]" >

    Hi MEMU,.

    I have it. And he has deployed in the built-in container. It works very well. Note that I did the following.

    (1) change the project properties,

    In the libraries and Classpath, I need to add in Classpath entries associated Jena libraries, slf4j, sdordfnosqlclient.jar, kvclient.jar etc.

    (2) use the xercesImpl - 2.9.1.jar instead of xercesImpl - 2.10.0.  Jdev 12 c appears to use an older version of xerces as bundles of Jena.

    Once done the configurations above, I can execute your project without changing Java code.

    Here is the result:

    [14: 34:08] wrote the Web application Module for /home/alwu/.jdeveloper/system12.1.2.0.40.66.68/o.j2ee/drs/UniversalSparqlQuery/queryWebApp.war

    [14: 34:09] wrote the Module Enterprise Application to /home/alwu/.jdeveloper/system12.1.2.0.40.66.68/o.j2ee/drs/UniversalSparqlQuery

    [14: 34:09] Application deployment...

    [14: 34:15] Application deployed successfully.

    [14: 34:15] the constriction of context following URLS have been defined and can be used as a starting point for testing your application:

    [14: 34:15] http://192.168.1.1:7101 / UniversalSparqlQuery-application-context-root

    [14: 34:16] for deployment time: 9 seconds

    [14: 34:16]-deployment is complete.  ----

    Run start time: 9573 ms.

    [Application running on IntegratedWebLogicServer UniversalSparqlQuery]

    Target application w- http://localhost:7101/UniversalSparqlQuery-query-context-root/resources/application.wadl

    Target URL - http://127.0.0.1:7101 / UniversalSparqlQuery-query context root/resources/query/select/home/store/port/model/application

    I went in a universal store

    I create the connection to: model

    Run the select query

    I leave the store: store

    I spent in-store universal semep

    I create the connection to: http://Repository

    Run select select? s? p? o where {? s? p? o}

    I leave the store: semep

    It will be useful,

    Zhe Wu

Maybe you are looking for