Setting up a domain using Oracle DB.

I creating a domain manually applying portal template using our own WLST script. We successfully applied workshop extension but whenever we try to apply the personalization extension we go the following exception:
WARNING] com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: java.lang.NullPointerException
[WARNING]      at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
[WARNING]      at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1464)
[WARNING]      at com.bea.plateng.domain.script.jython.WLScriptContext.updateDomain(WLScriptContext.java:453)
[WARNING]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[WARNING]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[WARNING]      at java.lang.reflect.Method.invoke(Method.java:597)
[WARNING]      at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
[WARNING]      at org.python.core.PyMethod.__call__(PyMethod.java:96)
[WARNING]      at org.python.core.PyObject.__call__(PyObject.java:258)
[WARNING]      at org.python.core.PyInstance.invoke(PyInstance.java:244)
[WARNING]      at org.python.pycode._pyx3.updateDomain$19(/tmp/WLSTOfflineIni7284856197490404440.py:89)
[WARNING]      at org.python.pycode._pyx3.call_function(/tmp/WLSTOfflineIni7284856197490404440.py)
[WARNING]      at org.python.core.PyTableCode.call(PyTableCode.java:208)
[WARNING]      at org.python.core.PyTableCode.call(PyTableCode.java:256)
[WARNING]      at org.python.core.PyFunction.__call__(PyFunction.java:169)
[WARNING]      at org.python.pycode._pyx16.f$0(/tmp/wlst_8685525951102029317.py:65)
[WARNING]      at org.python.pycode._pyx16.call_function(/tmp/wlst_8685525951102029317.py)
[WARNING]      at org.python.core.PyTableCode.call(PyTableCode.java:208)
[WARNING]      at org.python.core.PyCode.call(PyCode.java:14)
[WARNING]      at org.python.core.Py.runCode(Py.java:1135)
[WARNING]      at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
[WARNING]      at weblogic.management.scripting.WLST.main(WLST.java:129)
[WARNING]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[WARNING]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[WARNING]      at java.lang.reflect.Method.invoke(Method.java:597)
[WARNING]      at weblogic.WLST.main(WLST.java:29)
[WARNING] Caused by: com.bea.plateng.domain.script.ScriptException: java.lang.NullPointerException
[WARNING]      at com.bea.plateng.domain.script.ScriptExecutor.runGenerator(ScriptExecutor.java:2817)
[WARNING]      at com.bea.plateng.domain.script.ScriptExecutor.updateDomain(ScriptExecutor.java:834)
[WARNING]      at com.bea.plateng.domain.script.jython.WLScriptContext.updateDomain(WLScriptContext.java:449)
[WARNING]      ... 25 more
[WARNING] Caused by: java.lang.NullPointerException
[WARNING]      at com.bea.plateng.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:159)
[WARNING]      at com.bea.plateng.domain.security.SQLAuthenticatorHandler.loadSQLAuthenticatorFile(SQLAuthenticatorHandler.java:265)
[WARNING]      at com.bea.plateng.domain.TemplateImporter.generate(TemplateImporter.java:427)
[WARNING]      at com.bea.plateng.domain.script.ScriptExecutor$2.run(ScriptExecutor.java:2785)
[WARNING]
[WARNING] com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: java.lang.NullPointerException
The oracle DB has all scripts already applied even the the user has been created using the SQLAuthenticator.sql
This is blocking our development environment and we cannot proceed usign oracle.
Here is also the WLST script that we are using to create the domain.
from java.lang import String
from java.io import File
#=======================================================================================
# This script creates a weblogic domain from a domain template
# It will also extend the domain if any extension templates are defined
#=======================================================================================
print 'Start domain creation...'
print ''
#=======================================================================================
# Create domain from a domain template only if there's no existing domain already created
#=======================================================================================
domainDir=File('.../wls_domains/repairsDomain')
if domainDir.exists():
print 'Found existing domain at .../repairsDomain'
print 'Remove the directory if you want to create a brand-new domain'
print ''
else:
# create a brand new domain from domain template, currently we just use wls.jar
# which comes with weblogic installation
print 'Creating domain using template .../bea/wlserver_10.3/common/templates/domains/wls.jar'
readTemplate('.../bea/wlserver_10.3/common/templates/domains/wls.jar')
# update server properties: name, listen address, listen port
cd('/Server/AdminServer')
cmo.setName('AdminServer')
cmo.setListenAddress('0.0.0.0')
cmo.setListenPort(int('10004'))
# Reset the login id and password
cd('/Security/base_domain/User')
delete('weblogic','User')
create('system','User')
cd('/Security/base_domain/User/system')
cmo.setPassword('weblogic')
# - CreateStartMenu: Disable creation of Start Menu shortcut.
setOption('CreateStartMenu', 'false')
# - ServerStartMode: Set mode to development.
setOption('ServerStartMode', 'dev')
# - OverwriteDomain: Enable overwrite domain, when saving, if one exists.
setOption('OverwriteDomain', 'true')
# Write the base domain and close the base domain template.
writeDomain('.../repairsDomain')
closeTemplate()
print 'Server AdminServer will be listening at address 0.0.0.0 on port 10004'
print 'Domain repairsDomain successfully created in .../repairsDomain'
print ''
#=======================================================================================
# Apply extension templates if there's any
#=======================================================================================
extensionDomainTemplates=String('.../.m2/repository/com/vzb/domains/weblogic-workshop/1.2-SNAPSHOT/weblogic-workshop-1.2-SNAPSHOT.jar:.../.m2/repository/com/vzb/domains/weblogic-p13n/1.2-SNAPSHOT/weblogic-p13n-1.2-SNAPSHOT.jar:.../.m2/repository/com/vzb/domains/weblogic-portal-content/1.2-SNAPSHOT/weblogic-portal-content-1.2-SNAPSHOT.jar:.../.m2/repository/com/vzb/domains/weblogic-portal/1.2-SNAPSHOT/weblogic-portal-1.2-SNAPSHOT.jar')
if extensionDomainTemplates.length() != 0:
templates=extensionDomainTemplates.split(File.pathSeparator)
for template in templates:
print 'Extending domain using template ' + template
readDomain('.../repairsDomain')
addTemplate(template)
updateDomain()
closeDomain()
We migrate templates to maven so we can replace DB settings.

Marcus,
I can't answer your specific question but I suggest you browse some of the OAS and WebDB documentation. Click the documentation link on the left of this page. You could also take a look at some of the technical white papers available at www.oracle.com.
Blaise

Similar Messages

  • Questions on setting up a portal using oracle

    hi,
    i want to use oracle to set up a portal which is open to public and each user can register to setup their own account (with their own userid & password) and store their profile. At the same time, my application will periodically perform some tasks based on the values in some columns in the user's profile. Which is the best way to do this?
    1. Oracle8i db + Webdb?
    If i use this method, how do i implement the login method for the users? Will userid & password be just one of the fields in the user table? OR should each user be created and given an oracle user account?
    how to get userid & password fr. login form for verification so that i can show them their own profiles? any info on where can i find how to implement this will be much appreciated.
    2. Oracle8i db + Application Server
    I know this is a better approach (3-tier architecture). Where can i find info on how to implement the user login form and show them their own profile?
    thanks in advance. any help is appreciated.
    null

    Marcus,
    I can't answer your specific question but I suggest you browse some of the OAS and WebDB documentation. Click the documentation link on the left of this page. You could also take a look at some of the technical white papers available at www.oracle.com.
    Blaise

  • Set Desname for PDF using Oracle Applications

    We are running Oracle Applications 11i, 8i database on a Unix box and use windows 2000, internet explorer, acrobat 6.0 to run, and view the reports.
    I just finished redesigning a Oracle report to output to PDF instead of printing on a preprinted form.
    The user has requested that the output file (Report) be saved to a specific directory on a server that is on the windows platform.
    The report is being run from the concurrent manager inside of Oracle Applications, which seems to be over writing my desname that is specified in my report (rdf). Our current workaround is that the user opens the file in acrobat and save it to the desired directory, which they have to set manually for each session.
    Is there a way to run a report on UNIX and output the report to a windows directory?
    Thanks in advance...

    There is a better workaround than opening an saving on desktop...I have never tried this but have an idea...that would work 100%.
    The standard configuration of apps 11i is that the output file is placed in $APPLCSF/out and its on the Unix Box...but if u have apps running on NT environemnt then just share the file system of $APPLCSF with the desktop...Pretty simple....
    If apps is running on Unix then u need to install software like Samba on Unix so that the desktop will be able to share the file system of unix on desktop....
    Try it out...
    Best of luck

  • Error while creating physical standby database using Oracle Grid 10.2.0.5

    Hi All,
    I am setting up data guard using oracle grid.
    Primary database version: - 10.2.0.4
    Standby database version: - 10.2.0.4
    Primary OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    Standby OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    I am creating physical standby database using EM. But it is getting failed with error message in sqlnet.ora file
    Fatal NI connect error 12533, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=)(CONNECT_DATA=(SERVICE_NAME=INPRDSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=indb50.oii.com)(USER=oracle))))
      VERSION INFORMATION:
            TNS for Linux: Version 10.2.0.4.0 - Production
            TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.4.0 - Production
      Time: 17-AUG-2010 02:40:07
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12533
        TNS-12533: TNS:illegal ADDRESS parameters
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0As we can see, address_list is empty.
    Can anyone suggest what could be the reason behind this?

    Dear user13295317,
    Here is the error explanation;
    Oracle Error :: TNS-12533
    TNS:illegal ADDRESS parameters
    Cause
    An illegal set of protocol adapter parameters was specified.
    In some cases, this error is returned when a connection cannot be made to the protocol transport.
    Action
    Verify that the destination can be reached using the specified protocol.
    Check the parameters within the ADDRESS section of TNSNAMES.ORA.
    Legal ADDRESS parameter formats may be found in the Oracle operating system specific documentation for your platform.
    Protocols that resolve names at the transport layer (such as DECnet object names) are vulnerable to this error if not properly configured or names are misspelled.Hope That Helps.
    Ogan

  • Setting cookies across domains

    Hi there all,
    I'm posting this in desperation to be honest, don't think
    there is a cut'n'dried
    answer to this one.
    I've got a horrible situation, (don't ask why, it's far too
    complex and to
    be quite honest.. boring :) ).
    I'm trying to "mesh" together a classic .asp with an asp.NET
    site on 2
    separate domains.
    Basically I've got a page from the asp.NET site (eg.
    www.something.co.uk)
    displayed within an iframe on the .asp (eg
    www.another.co.uk). So far so
    good.
    I need to set a cookie on www.another.co.uk and be able to
    read it, or
    replicate it on www.something.co.uk. Because they are not
    sub-domains I can't
    set the cookie direct because of security restrictions.
    So, I thought I could pass a URL variable across to
    www.something.co.uk via
    the iframe URL, and then using javascript to read said URL
    variable and set
    a cookie on the www.something.co.uk domain. No go. Suspect
    there is yet
    again security restrictions to setting cookies across domains
    using iframe.
    So I'm kind of stuck. Can anybody suggest anything please,
    bearing in mind I
    have very limited control over the asp.NET
    (www.something.co.uk) site, so
    any solution I come up with needs to be using javascript.
    Major sized thanks in advance.
    @ndyB

    You could also pass the id as a hidden field in a form.
    Have the link call a JavaScript function. The JavaScript funcition could access the cookie and pull out the id. The function would then set a hidden field in a form to the id value and then Post the form to the secure server.
    The form would only have hidden fields so it could be tagged on the end of the HTML page and the user would never know it was there.

  • Problem with getting current date and time using oracle.jbo.domain.Date

    I`d like to get current date and time using oracle.jbo.domain.Date method getCurrentDate(), but it always return current date and 12:00:00. I also need to get the current time.

    I think you should use java.sql.Timestamp domain.
    (And set database type to TIME or DATETIME.)
    Jan

  • How to set file permission using Oracle FTP Adapter

    Hi,
    I am using Oracle SOA Suite 11.1.1.4. I am trying to put a file using Oracle FTP adapter on unix box. The file that gets written to target system has file permission as RW/R/R. But this is a legacy system, and for them to consume this file - they expect the file permission to be RW/RW/R.
    They have set the .profile with the required permissions for the ftp user account that we are using. But still when my BPEL process writes a file to unix box through ftp adapter, the file permission is RW/R/R.
    Is there any way to control file permissions while writing files using ftp adapter? Any help would be highly appreciated.

    907597 wrote:
    But these setting needs to be done on unix server. Yes, that's the way to go... There's no config for that on FtpAdapter as far as I know...
    This setting will enable the same configurations for all other ftp accounts on the server, which doesnt sound correct. Any other way of doing this? Or can this be done only for one ftp account?You have to check if your ftp server is capable of having different umask for different ftp users... I believe most do not...
    http://h30499.www3.hp.com/t5/System-Administration/Setting-FTP-umask-per-user/td-p/2590101#.UMZ0TeEe7ng
    Cheers,
    Vlad

  • Can't use Oracle 8.1.7 as WLP repository

    OK, I've been racking my brain on this for three days now.. maybe someone has an
    idea...
    The basic problem is this: I have yet been able to make a WLP content repository
    work with
    Oracle 8.1.7 and WLP 8.1.
    I have tried several methods, including the ones mentioned here:
    http://e-docs.bea.com/wlp/docs81/db/3Oracle.html (to move cgPool to an Oracle
    database), and by creating a completely new portal domain from scratch, using
    "Custom" (instead of Express) from the configuration wizard, setting up the JDBC
    pools to point to Oracle (connection passed, database load passed correctly).
    I then deploy a simple Portal Application / Portal Project created in workshop
    as an EAR
    (let's call it testPortal). Deployment seems to go fine. The outcome of all
    methods is the same: the administration portal works fine. When I click on "Content",
    I see the BEA repository. I can add nodes to the repository, AS LONG AS THEY
    ARE DIRECTLY UNDER the BEA repository (for example: BEA Repository/TestNode).
    However, if I try to add a node under that node (for example: BEA Repository/TestNode/TestNodeChild),
    I get the following error from the admin portal as a popup box:
    - Error creating Node: TestChildNode. Please verify the Node name size is within
    Repository limits.
    I can add any number of content items (including the standard content types that
    were loaded:
    article, book, image, etc) or nodes directly under BEA Repository, but I cannot
    add anything under other nodes or the above error appears.
    Some data is definitely getting to Oracle. After adding a node under BEA Repository,
    a record for that node shows up in the database. The JDBC log shows an ORA-2291
    (constraint violated) error (from jdbc.log):
    java.sql.SQLException: ORA-02291: integrity constraint (DIAGEOCMS.FK1_CM_NODE)
    v
    iolated - parent key not found
    This foreign key constraint is a pointer for the parent id of the node, back into
    the cm_node table.
    If I roll back the cgPool to pointbase, it works fine. Just not with an Oracle
    8.1.7 cgPool
    (or any other name, for that matter). I have tested this under both Win 2K and
    Linux AS.
    Other details: I did use a non-XA driver as suggested in the edocs link above.
    For the cgPool, I used the Oracle Type 4 non-XA driver. I changed all the relevant
    data sources to point at the new pool. And I did change the cgJMS store to use
    the new pool as well.
    Is anyone else successfully using Oracle 8.1.7 and Portal 8.1 with the repository?
    Sorry for the length of the message.. difficult one to explain.
    Thanks,
    Bob

    D'oh.
    OK, it turns out that our staging database was NOT the Oracle 8.1.7.4 I thought
    it was. Migrated from the 8.1.7.0 database to 8.1.7.4 resolved this problem.
    Bob
    "Bob Robinson" <[email protected]> wrote:
    >
    OK, I've been racking my brain on this for three days now.. maybe someone
    has an
    idea...
    The basic problem is this: I have yet been able to make a WLP content
    repository
    work with
    Oracle 8.1.7 and WLP 8.1.
    I have tried several methods, including the ones mentioned here:
    http://e-docs.bea.com/wlp/docs81/db/3Oracle.html (to move cgPool to an
    Oracle
    database), and by creating a completely new portal domain from scratch,
    using
    "Custom" (instead of Express) from the configuration wizard, setting
    up the JDBC
    pools to point to Oracle (connection passed, database load passed correctly).
    I then deploy a simple Portal Application / Portal Project created in
    workshop
    as an EAR
    (let's call it testPortal). Deployment seems to go fine. The outcome
    of all
    methods is the same: the administration portal works fine. When I click
    on "Content",
    I see the BEA repository. I can add nodes to the repository, AS LONG
    AS THEY
    ARE DIRECTLY UNDER the BEA repository (for example: BEA Repository/TestNode).
    However, if I try to add a node under that node (for example: BEA Repository/TestNode/TestNodeChild),
    I get the following error from the admin portal as a popup box:
    - Error creating Node: TestChildNode. Please verify the Node name size
    is within
    Repository limits.
    I can add any number of content items (including the standard content
    types that
    were loaded:
    article, book, image, etc) or nodes directly under BEA Repository, but
    I cannot
    add anything under other nodes or the above error appears.
    Some data is definitely getting to Oracle. After adding a node under
    BEA Repository,
    a record for that node shows up in the database. The JDBC log shows
    an ORA-2291
    (constraint violated) error (from jdbc.log):
    java.sql.SQLException: ORA-02291: integrity constraint (DIAGEOCMS.FK1_CM_NODE)
    v
    iolated - parent key not found
    This foreign key constraint is a pointer for the parent id of the node,
    back into
    the cm_node table.
    If I roll back the cgPool to pointbase, it works fine. Just not with
    an Oracle
    8.1.7 cgPool
    (or any other name, for that matter). I have tested this under both
    Win 2K and
    Linux AS.
    Other details: I did use a non-XA driver as suggested in the edocs link
    above.
    For the cgPool, I used the Oracle Type 4 non-XA driver. I changed all
    the relevant
    data sources to point at the new pool. And I did change the cgJMS store
    to use
    the new pool as well.
    Is anyone else successfully using Oracle 8.1.7 and Portal 8.1 with the
    repository?
    Sorry for the length of the message.. difficult one to explain.
    Thanks,
    Bob

  • Integration with PeopleSoft Applications Using Oracle SOA Suite 11g BPEL

    Hi,
    I'm integrating BPEL with Peoplesoft FSCM 9.0 Application on tools 8.49 using Oracle SOA Suite 11g. The BPEL invokes the web service method generated from Peoplesoft Component Interface in a synchronuos manner.
    I have deployed the BPEL in Oracle SOA Suite 11g using Jdeveloper successfully but I have problem in configuring the BPEL node in Peoplesoft side using Oracle SOA Suite 11g(FMW) . I had done the integration of BPEL with Peoplesoft FSCM 9.0 on tools 8.49 using Oracle SOA Suite 10g earlier successfully by configuring BPEL node properties as follows:
    BPEL CONSOLE : http://Host Name:8888/BPELConsole (System with Oracle SOA Suite 10g server for deployment)
    BPEL DOMAIN : default
    Using this BPEL node configuration, I was able to ping the BPEL console of Oracle SOA Suite 10g from peoplesoft and hence complete the integration successfully.
    Now in order to acomplish Business rules and other functionality, the BPEL application has been developed in Oracle SOA Suite 11g using Jdeveloper 11g. This time I'm not able to configure the BPEL node in Peoplesoft for this integration as I'm assuming there is no separate BPEL console in Oracle SOA Suite 11g. All the BPEL deployments are administered in console (11g console used for deployment of BEPL)
    http://Host Name:7001/em (System with Oracle SOA Suite 11g server - Fusion Middleware).
    So when I Configured the BPEL node property in Peoplesoft as :
    BPEL CONSOLE : http://Host Name:7001/em (System with Oracle SOA Suite 11g server for deployment)
    BPEL DOMAIN : default
    I'm not able to ping the Peoplesoft BPEL node to the Oracle SOA Suite 11g. Hence I'm not able to proceed with my integration.
    When I searched the OTN discussion forum on BPEL console for Oracle SOA Suite 11g, all threads point that there is no separate BPEL console unlike Oracle SOA Suite 10g. Also most of the articles for Integration with Peoplesoft Application using SOA 11g do not state any specific configuration setting for property of Peoplesoft BPEL node in order to integrate with BPEL 11g. The examples published in OTN still point towards screen shots of integration using SOA Suite 10g.
    So I'm not able to proceed in this regard.
    Any help in this regard is highly appreciated.
    Thanks in Advance,
    Girish
    Edited by: user11214154 on Nov 23, 2009 8:12 PM
    typo error

    Hi,
    I found this document from the Oracle Open World 2009 (maybe you have found it too) :
    "Integration with PeopleSoft applications using oracle soa suite 11g BPEL" --> [http://www.oracle.com/technology/tech/fmw4apps/peoplesoft/pdf/oow2009-bpel-psft.pdf]
    And this could be a little more simple, but have a good step-by-step tutorial.
    [http://www.oracle.com/technology/obe/fusion_middleware/fusion/soa/BPEL_PS848/OBE_PSFT_BPEL_848.htm]
    I think you must read this docs by now, but never come amiss.
    Hope this can help you,
    By the way, if you can help me with this I'll appreciate it a lot.
    Unable to access the following endpoint(s)

  • Product Search Using Oracle Text or By Any Other Methods using PL/SQL

    Hi All,
    I have requirement for product search using the product table which has around 5 million products. I Need to show top 100 disitnct products searched  in the following order
    1. = ProductDescription
    2. ProductDescription_%
    3. %_ProductDescription_%
    4. %_ProductDescription
    5. ProductDescription%
    6. %ProductDescription
    Where '_' is space.  If first two/three/or any criteria itslef gives me 100 records then i need not search for another patterns
    Table Structure Is as follows
    Create Table Tbl_Product_Lookup
        Barcode_number                Varchar2(9),
        Product_Description Varchar2(200),
        Product_Start_Date Date,
        Product_End_Date Date,
        Product_Price Number(12,4)
    Could you please help me implementing this one ? SLA for the search result is 2 seconds
    Thanks,
    Varun

    You could use an Oracle Text context index with a wordlist to speed up substring searches and return all rows that match any of your criteria, combined with a case statement to provide a ranking that can be ordered by within an inner query, then use rownum to limit the rows in an outer query.  You could also use the first_rows(n) hint to speed up the return of limited rows.  Please see the demonstration below.  If you decide to use Oracle Text, you may want to ask further questions in the Oracle Text sub-forum on this forum or space or whatever they call it now.
    SCOTT@orcl_11gR2> -- table:
    SCOTT@orcl_11gR2> Create Table Tbl_Product_Lookup
      2    (
      3       Barcode_number       Varchar2(9),
      4       Product_Description  Varchar2(200),
      5       Product_Start_Date   Date,
      6       Product_End_Date     Date,
      7       Product_Price          Number(12,4)
      8    )
      9  /
    Table created.
    SCOTT@orcl_11gR2> -- sample data:
    SCOTT@orcl_11gR2> insert all
      2  into tbl_product_lookup (product_description) values ('test product')
      3  into tbl_product_lookup (product_description) values ('test product and more')
      4  into tbl_product_lookup (product_description) values ('another test product and more')
      5  into tbl_product_lookup (product_description) values ('another test product')
      6  into tbl_product_lookup (product_description) values ('test products')
      7  into tbl_product_lookup (product_description) values ('selftest product')
      8  select * from dual
      9  /
    6 rows created.
    SCOTT@orcl_11gR2> insert into tbl_product_lookup (product_description) select object_name from all_objects
      2  /
    75046 rows created.
    SCOTT@orcl_11gR2> -- wordlist:
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('mywordlist', 'BASIC_WORDLIST');
      3    ctx_ddl.set_attribute('mywordlist','PREFIX_INDEX','TRUE');
      4    ctx_ddl.set_attribute('mywordlist','PREFIX_MIN_LENGTH', '3');
      5    ctx_ddl.set_attribute('mywordlist','PREFIX_MAX_LENGTH', '4');
      6    ctx_ddl.set_attribute('mywordlist','SUBSTRING_INDEX', 'YES');
      7    ctx_ddl.set_attribute('mywordlist', 'wildcard_maxterms', 0) ;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> -- context index that uses wordlist:
    SCOTT@orcl_11gR2> create index prod_desc_text_idx
      2  on tbl_product_lookup (product_description)
      3  indextype is ctxsys.context
      4  parameters ('wordlist mywordlist')
      5  /
    Index created.
    SCOTT@orcl_11gR2> -- gather statistics:
    SCOTT@orcl_11gR2> exec dbms_stats.gather_table_stats (user, 'TBL_PRODUCT_LOOKUP')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> -- query:
    SCOTT@orcl_11gR2> variable productdescription varchar2(100)
    SCOTT@orcl_11gR2> exec :productdescription := 'test product'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> column product_description format a45
    SCOTT@orcl_11gR2> set autotrace on explain
    SCOTT@orcl_11gR2> set timing on
    SCOTT@orcl_11gR2> select /*+ FIRST_ROWS(100) */ *
      2  from   (select /*+ FIRST_ROWS(100) */ distinct
      3              case when product_description = :productdescription            then 1
      4               when product_description like :productdescription || ' %'       then 2
      5               when product_description like '% ' || :productdescription || ' %' then 3
      6               when product_description like '% ' || :productdescription       then 4
      7               when product_description like :productdescription || '%'       then 5
      8               when product_description like '%' || :productdescription       then 6
      9              end as ranking,
    10              product_description
    11           from   tbl_product_lookup
    12           where  contains (product_description, '%' || :productdescription || '%') > 0
    13           order  by ranking)
    14  where  rownum <= 100
    15  /
       RANKING PRODUCT_DESCRIPTION
             1 test product
             2 test product and more
             3 another test product and more
             4 another test product
             5 test products
             6 selftest product
    6 rows selected.
    Elapsed: 00:00:00.10
    Execution Plan
    Plan hash value: 459057338
    | Id  | Operation                      | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                    |    38 |  3990 |    13  (16)| 00:00:01 |
    |*  1 |  COUNT STOPKEY                 |                    |       |       |            |          |
    |   2 |   VIEW                         |                    |    38 |  3990 |    13  (16)| 00:00:01 |
    |*  3 |    SORT UNIQUE STOPKEY         |                    |    38 |   988 |    12   (9)| 00:00:01 |
    |   4 |     TABLE ACCESS BY INDEX ROWID| TBL_PRODUCT_LOOKUP |    38 |   988 |    11   (0)| 00:00:01 |
    |*  5 |      DOMAIN INDEX              | PROD_DESC_TEXT_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter(ROWNUM<=100)
       3 - filter(ROWNUM<=100)
       5 - access("CTXSYS"."CONTAINS"("PRODUCT_DESCRIPTION",'%'||:PRODUCTDESCRIPTION||'%')>0)
    SCOTT@orcl_11gR2>

  • How to set -Xss or ulimit  for Oracle Http Server

    Hi,
    We are facing Out of Memory Error in OHS 11g in our cluster environment. Where I can see below statements in http log file:
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Cannot create GC thread. Out of system resources.
    # Possible reasons:
    # The system is out of physical RAM or swap space
    # In 32 bit mode, the process size limit was hit
    # Possible solutions:
    # Reduce memory load on the system
    # Increase physical memory or swap space
    # Check if swap backing store is full
    # Use 64 bit Java on a 64 bit OS
    # Decrease Java heap size (-Xmx/-Xms)
    # Decrease number of Java threads
    # Decrease Java thread stack sizes (-Xss)
    # Set larger code cache with -XX:ReservedCodeCacheSize=
    # This output file may be truncated or incomplete.
    #  Out of Memory Error (gcTaskThread.cpp:46), pid=17956, tid=140591807985408
    When I run the ulimit command on machine, stack size is showing as 10MB:
    Result:
    [oracle@XXXXXX bin]$ ulimit -a
    core file size          (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 1031958
    max locked memory       (kbytes, -l) 3500000
    max memory size         (kbytes, -m) unlimited
    open files (-n) 131072
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 10240
    cpu time (seconds, -t) unlimited
    max user processes (-u) 131072
    virtual memory          (kbytes, -v) unlimited
    file locks (-x) unlimited
    Setting the stack size to 512KB or 256KB might resolve the problem.
    I tried setting ulimit -s 512  in my user bash_profile. and ran ulimit -a , then it is showing as 
    stack size (kbytes, -s) 512
    If I set at user level, does it have any impact? Or we should set at JVM level using -Xss
    Can some body tell me where can I set -Xss for Oracle HTTP server 11g?
    Regards,
    Vidya

    Hi Marco,
    I believe you'll need to setup a MX record under 'More Actions' for your domain in Site Settings / Site Domains.
    Select the option "Use another external service for email" and enter your primary mail server's hostname at priority 10.
    Think you can repeat this step for your secondary mail server (priority 20) if you have one.
    Regards
    Mike

  • Cant connect to Oracle database using oracle db client

    Hi All,
    I recently created a virtual machine running windows server 2008 on my windows 7 host. Oracle database 11g is already installed on host OS(windows 7) and I have installed oracle 11g client on the guest OS(windows server 2008) and trying to connect to oracle database from remote server using oracle client but getting this error:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATAI am trying to connect using oracle client as below:
    C:\Users\Administrator>SET ORACLE_SID = HR84DEV
    C:\Users\Administrator>SQLPLUS /NOLOG
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 10 06:16:34 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> CONNECT SYSADM/[email protected]
    ERROR:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    I have created database with name - HR84DEV
    HOST ip address is - 192.168.56.1
    I googled this error and as most of resources/blogs talked about having correct entry on listner.ora and tnsnames.ora file, I did the changes on both of these files accordingly.
    PFB the cotent of both of these files:
    tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\MyApps\Oracle\product\11.2.0\dbhome_\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    HR84DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = HR84DEV)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    listner.ora
    # listener.ora Network Configuration File: C:\MyApps\Oracle\product\11.2.0\dbhome_\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\MyApps\Oracle\product\11.2.0\dbhome_)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\MyApps\Oracle\product\11.2.0\dbhome_\bin\oraclr11.dll")
    (SID_DESC =
    (SID_NAME = HR84DEV)
    (ORACLE_HOME = C:\MyApps\Oracle\product\11.2.0\dbhome_)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\MyApps\Oracle\product\11.2.0\dbhome_\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    ADR_BASE_LISTENER = C:\MyApps\Oracle
    Please not that I dont have any problem in connect to database locally.

    Thanks Nicolas,
    Actually, there was a problem with my oracle client installation. I uninstalled it and then installed back again but still, even after following your instructions I get some error.
    Here what I did:
    Created tnsnames.ora file as below:
    HR84DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = HR84DEV)
    Placed it under appropriate directory and then checked the connection with database using the command shown below:
    C:\Users\Administrator>tnsping HR84DEV
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-FEB-2
    012 08:42:03
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\MyApps\Administrator\product\11.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.56.1)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = HR84DEV)))
    OK (20 msec)
    Then tried to connect to database as below:
    C:\Users\Administrator>SET ORACLE_SID=HR84DEV
    C:\Users\Administrator>SQLPLUS /NOLOG
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 10 08:25:56 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> CONNECT SYSADM/SYSADM@HR84DEV
    ERROR:
    ORA-28547: connection to server failed, probable Oracle Net admin error
    But still getting error.
    I Googled this error and tried to figure out what the problem is and came across the possible cause which is because I haven't specify that the service should run as a user who is in domain admin group.
    well, I am not really sure about this and dont know what user name and password I should enter in OracleserviceHR84DEV-properties-log on-this account.
    do I really need to set this?

  • Error while packing domain using pack.cmd

    Hi,
    I am trying to pack my domain from HOST A using command :
    pack -managed=true -domain=C:\Oracle\Middleware\user_projects\domains\Edlink -template=C:\Oracle\edlink.jar -log=c:\oracle\edlink.log -template_name="template_name"
    and wants to unpack it on HOST B
    But I am able to see below errors in my pack log file:
    2014-09-01 16:52:57,825 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - read domain from "C:\Oracle\Middleware\user_projects\domains\Edlink"
    2014-09-01 16:52:59,672 ERROR [runScript] com.bea.plateng.domain.jdbc.TemplateDatabaseInfoHelper - FATAL ERROR: database.xml validation error!
    2014-09-01 16:52:59,673 ERROR [runScript] com.bea.plateng.domain.jdbc.TemplateDatabaseInfoHelper - database XML parsing failed: error: cvc-complex-type.2.4a: Expected element 'sql-statement@http://xmlns.oracle.com/weblogic/template-database' instead of 'datasource-mapping@http://xmlns.oracle.com/weblogic/template-database' here in element test@http://xmlns.oracle.com/weblogic/template-database
    2014-09-01 16:52:59,673 ERROR [runScript] com.bea.plateng.domain.jdbc.TemplateDatabaseInfoHelper - fail to parse database.xml
    java.lang.Exception: Database.xml validation failed.
    at com.bea.plateng.domain.jdbc.TemplateDatabaseInfoHelper.parseTemplateDatabaseInfo(TemplateDatabaseInfoHelper.java:582)
    at com.bea.plateng.domain.TemplateBuilder.parseDomainDirectory(TemplateBuilder.java:835)
    at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1342)
    at com.bea.plateng.domain.TemplateBuilder.buildNewDomainTemplate(TemplateBuilder.java:1287)
    at com.bea.plateng.domain.TemplateBuilder.buildNewDomainTemplate(TemplateBuilder.java:1279)
    at com.bea.plateng.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:416)
    at com.bea.plateng.domain.script.ScriptParserClassic$StateMachine.processRead(ScriptParserClassic.java:524)
    at com.bea.plateng.domain.script.ScriptParserClassic$StateMachine.execute(ScriptParserClassic.java:428)
    at com.bea.plateng.domain.script.ScriptParserClassic.parseAndRun(ScriptParserClassic.java:150)
    at com.bea.plateng.domain.script.ScriptParserClassic.doExecute(ScriptParserClassic.java:113)
    at com.bea.plateng.domain.script.ScriptParser.execute(ScriptParser.java:73)
    at com.bea.plateng.domain.script.ScriptParser.execute(ScriptParser.java:36)
    at com.bea.plateng.wizard.domain.helpers.Executor.runSilentScript(Executor.java:66)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.plateng.wizard.domain.silent.tasks.RunScriptTask.runScriptWithExecutor(RunScriptTask.java:552)
    at com.bea.plateng.wizard.domain.silent.tasks.RunScriptTask.execute(RunScriptTask.java:336)
    at com.bea.plateng.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)
    at java.lang.Thread.run(Thread.java:662)
    2014-09-01 16:53:00,446 WARN  [runScript] com.bea.plateng.domain.aspect.XBeanConfigAspect - Unable to locate property:Target on type:class com.bea.plateng.domain.xml.configxb.impl.MachineTypeImpl
    2014-09-01 16:53:00,451 WARN  [runScript] com.bea.plateng.domain.aspect.XBeanConfigAspect - Unable to locate property:Target on type:class com.bea.plateng.domain.xml.configxb.impl.ClusterTypeImpl
    2014-09-01 16:53:00,451 WARN  [runScript] com.bea.plateng.domain.aspect.XBeanConfigAspect - Unable to locate property:Target on type:class com.bea.plateng.domain.xml.configxb.impl.ServerTypeImpl
    2014-09-01 16:53:00,451 WARN  [runScript] com.bea.plateng.domain.aspect.XBeanConfigAspect - Unable to locate property:Target on type:class com.bea.plateng.domain.xml.configxb.impl.ServerTypeImpl
    2014-09-01 16:53:00,482 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: read domain from "C:\Oracle\Middleware\user_projects\domains\Edlink"
    2014-09-01 16:53:00,484 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - set config option Managed to "true"
    2014-09-01 16:53:00,532 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: set config option Managed to "true"
    2014-09-01 16:53:00,534 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - write template to "C:\Oracle\edlink.jar"
    2014-09-01 16:53:03,449 INFO  [Thread-1] com.bea.plateng.domain.TemplateGenerator - Template Generation Successfull!
    2014-09-01 16:53:03,480 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: write template to "C:\Oracle\edlink.jar"
    2014-09-01 16:53:03,481 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - close template
    2014-09-01 16:53:03,481 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: close template
    I have faced this problem earlier also but that time I used tar.sh and untar.sh scripts provided by our engineering team, but this time I don't have.
    also it seems there is some ongoing bug with pack.sh/cmd & unpack.sh/cmd
    thus it fails to compress the domain into a jar everytime
    FYI: I am using
    WebLogic server with portal 10.3.2
    with DB as MSSQL Server
    on windows platform
    Solution to this post would be appreciable.
    Thanks
    Punit

    The issue seems to be similar to this bug:
    Bug 13624207 - ISSUE WHEN USING PACK/UNPACK COMMAND WHILE CREATING DOMAIN USING WLST.
    Please try posting here:
    WebLogic Portal
    Best Regards
    Luz

  • Compiling Apache 1.3.9 & PHP 3.0.12 to use Oracle 8.1.5 on SuSe 6.2

    Hi!
    I am trying to compile the above packets but am running into massive problems.
    PHP3 compiles well, if i try to use the "normal" static module for Apache, but the Apache configure script says that it needs an ANSI C compiler and stops.
    I am using GCC 2.7.2.3 with the bugfixes from SuSe.
    Since that did not work I tried the configuration as a Dynamic Module. The Apache "Readme.config" explains two ways to do so, but the first has the same problem with GCC and the second (via APXS) compiles Apache without problems, but PHP3 wont compile since it does not find a library. The exact error is: "/usr/i486-linux/bin/ld: cannot open -lclntsh: No such file or directory"
    I found a libclntsh.so.8.0 in the oracle/lib directory, but since i fumbled around with this library (i tried ln -s libclntsh.so.8.0 libclntsh.so) sqlplus says libclntsh.so.8.0: cannot find file data: no such file or directory (even now that the link is deleted again).
    And PHP still wont compile. Any ideas would be welcome.
    P.S.: Is it normal that Oracle has to be told NOT to create a database during install, TO create a database???
    We worked for 3 days on the Oracle installation and that was the only way to install Oracle without errors.
    thx
    Uwe Schurig

    Lee Bennett (guest) wrote:
    :Hi
    :I have successfully installed Oracle 8.1.5 Enterprise edition
    on
    :Suse 6.2 and applied the 8.1.5.0.1 patch set,
    NO!
    SuSe 6.2 have a patch file for Oracle made from their developers.
    Never use Oracle 8.1.5.0.1 patch file that doesn't work because
    us bugged.
    Use SuSe 6.2 Oracle patch set.
    (don't remember the web page where you can download it but a
    search with word "oracle" from SuSe homepage will lead you to
    it)
    -Stefano
    null

  • Getting error like "Error in portal_sso_redirect: missing application registration information" while trying to run application using Oracle SSO

    Hi All,
    I am trying to implement SSO authentication for my APEX application. I have registered the application as a SSO partner application.
    I have set the authentication scheme to Oracle Application server Single Sign On.
    When i run the application i am getting the below error.
    Error in portal_sso_redirect: missing application registration information: p_partner_app_name:g_listener_token:HTML_DB:ofss220104.in.oracle.com:5050Please register this application as described in the installation guide.
    Please help me to resolve this.
    Thanks and Regards,
    Suhas

    Suhas,
    After you registered your application as a SSO partner application did you use the information from Oracle SSO (home URL, success URL, Logout URL, app_name etc) and loaded it into the APEX_SSO schema using the regapp.sql script from the ssosdk?
    Step 4 of http://www.oracle.com/technetwork/testcontent/sso-partner-app-100552.html#INSTALL
    Ricker

Maybe you are looking for

  • CD ROM Drive Issue with a Satellite A215-S7416

    Hello, I wonder if someone can please help me. I don't know why this issue is happening with my laptop, but maybe someone else here has had the same thing. I don't really use my CD ROM drive all that much, but for some strange reason all of a sudden

  • External hard drive not recognised in start up options

    Hi! I'm struggling to get to grips with creating a bootable external drive - any advice would be very welcome! I've recently bought a LaCie Triple Interface 300GB external drive to use for backup storage and to use as a back up bootable drive should

  • Spinning beachball when scrolling pages; filling forms

    1.3.1 on 10.3.9 Didn't notice when this started, but for some time now, scrolling a page or filling out a form is cumbersome as the program hesitates, often for a few seconds, with a spinning beachball as I move around the pagee or click on buttons.

  • What it the name of the standard table...

    ...in wich we can create and modify specific attributes to use in specific program. Thanks

  • How to copy Shape from illustrator CC to Photoshop CC?

    I want to cope Shape from illustrator CC to Photoshop CC, however I found when I copy the Shape from illustrator and paste it in Photoshop, the style of Shape has changed. like the color changed to the foreground color of Photoshop , and the stroke a