Cannot use BOOLEAN in Oracle

Why we can't use BOOLEAN in SQL statement but we can use it in PL/SQL statement. But what does that mean? Thanks.

grus wrote:
Why we can't use BOOLEAN in SQL statement but we can use it in PL/SQL statement. But what does that mean? Thanks.As already explained, SQL and PL (Programming Logic) are different computer languages and have different data types. Though PL typically supports most SQL data types too.
Oracle however allows you to define your own SQL data types - and create these in a similar way as you would define an object orientated class. These data types have constructors, properties and methods, static class methods - and supports abstract definitions and inheritance. All the basics of an o-o class definition is supported.
This allows you to, for example, create your own boolean data type that you can use in both SQL and PL. Not that this is specifically a good idea for boolean values (as a single character column with a Y/N constraint can do the job equally well to). But even so, to define your own data types is a very powerful feature that can be used to deal with non-common data types in specialised database implementations.
An example of how to create a SQL boolean type was posted some time ago in [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=2116991#2116991].

Similar Messages

  • Cannot use existing oracle 10g db as collab suite database

    Hi all,
    I am trying to simulate colocated IM architecture installation in my test machines. I tried to use my existing Oracle db 10g R2 as my collab suite database. The OUI prompted an error after checking prerequisites:
    Oracle Home you have specified is an Oracle 10g 10.2.0.0.0 or higher version and cannot be configured into an Oracle Collaboration Suite Database.
    Refering to OCS documentation,
    "You need Oracle Database 10g (10.1.0.4.2) for the Oracle Collaboration Suite installation to be successful. If you have an earlier version of database, for example Oracle Database 10g (10.1.0.2) or Oracle Database 10g (10.1.0.3), then you must apply the Oracle Database 10g
    Release 1 (10.1.0.4.2) Patchset to this existing Database."
    Install Guide 10g R1 B15793-01 Chapter 5.2.1 "You can optionally convert an existing Oracle Database 10g into an Oracle Collaboration Suite Database. The database must be version 10.1.0.5 or higher.."
    Deployment Guide 10g R1 B14479-01 Chapter 4These statements indicates that oracle DB 10.1.0.5 or higher can be converted into OCS DB. But the OUI hit me with the error. Have anyone encountered this before? or any idea why? Thanks

    did you find out the solution for your issue. I ran into the same problem.

  • Facing java.lang.ClassCastException: DummyPagePhaseListener cannot be cast to oracle.adf.model.RegionController while am using master detail relationship by af:table

    Hi friends,
         We are in to new development in Oracle ADF and newbie to this technology.
         Created .jsf page and in corresponding pagedef, has "ControllerClass" with refering "DummyPagePhaseListener" and we have master-detail relationship using Viewlink(created using a SQL Query and  entity based view).
        Below exception raised when navigating from one  to another record in Master af:table. Any help will be appreciated. Thanks in Advance......
    java.lang.ClassCastException: DummyPagePhaseListener cannot be cast to oracle.adf.model.RegionController
    at oracle.adf.model.binding.DCBindingContainer.getRegionController(DCBindingContainer.java:5197)
    at oracle.adf.model.binding.DCBindingContainer.validate(DCBindingContainer.java:4247)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.validateModelUpdates(PageLifecycleImpl.java:300)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.validateModelUpdates(FacesPageLifecycle.java:70)
    at oracle.adf.controller.v2.lifecycle.Lifecycle$6.execute(Lifecycle.java:202)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$600(ADFPhaseListener.java:23)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$3.after(ADFPhaseListener.java:323)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:447)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    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:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Hi timo,
    Thanks for ur reply...
    we are using unbounded taskflow.
    In Controller class(page def file), we refered the class that implements PagePhaseListener
    The following override methods has created
      public void afterPhase(PagePhaseEvent pagePhaseEvent) {
    //In this area we used to read the session object file which is written and sent by another application(application to application navigate).
    If session object file exists,will allow the user to navigate into the requested page else will navigate in to login(security aspect).
      public void beforePhase(PagePhaseEvent pagePhaseEvent) {
    Is we used Controller class wrongly ???
    Is there any relationship with region controller???
    Mani
    [email protected]

  • How to use LDAP with Oracle forms 10g on Oracle application server

    Hi,
    I need some help on this. I have developed oracle forms 10g on application server 9iAS. The client want to use the existing LDAP authentication to the software we wrote. I do not know how I could configure to use the existing LDAP authentication . If anyone know how would I use the existing LDAP on different server to use when they logon to our menu in 10g to validate the user. Do I need to add any varibales in formweb.cfg or any other method. Please help.
    Thanks
    Luksh

    I am not quite sure if this works out of the box. According to an Oracle FAQ:
    4.2 Can I use LDAP to authenticate Forms Services?
    Not directly. However, Oracle Login Server is able to authenticate against a LDAP directory and thus a Forms application can take advantage of this in a SSO environment. But you cannot use access control information stored in a LDAP directory with Forms.

  • Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec

    I have created a BPEL process in which i have used DB Adapter when i try to deploy the soa suite coposite i am getting the following error.
    [09:36:10 PM] Error deploying archive sca_TicketBooking_rev1.0.jar to partition "default" on server soa_server1 [http://utl-7c8735e613f:8001]
    [09:36:10 PM] HTTP error code returned [500]
    [09:36:10 PM] Error message from server:
    There was an error deploying the composite on soa_server1: [JCABinding] [TicketBooking.TicketBooking/1.0]Unable to complete unload due to: Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec: Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec.
    [09:36:10 PM] Check server log for more details.
    [09:36:10 PM] Error deploying archive sca_TicketBooking_rev1.0.jar to partition "default" on server soa_server1 [http://utl-7c8735e613f:8001]
    [09:36:10 PM] #### Deployment incomplete. ####
    [09:36:10 PM] Error deploying archive file:/D:/Personal/OracleWork/RnDProjects/TicketBooking/TicketBooking/deploy/sca_TicketBooking_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    I already created the data source and JNDI Name in the DBAdapter but still getting the error while deploying the application.
    One mistake that i think i have made after creating the data source now the DBAdapter.rar file taking the path as follows.
    Source Path:     C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ was\ DbAdapter. rar
    Deployment Plan: C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ was\ Plan. xml
    initially the path was as follows:
    Source Path:     C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ DbAdapter. rar
    Deployment Plan: C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ Plan. xml
    Please help me i have googled a lot but can't find the answer anywhere.
    Thanks in advance

    Mate ,
    Just check the health status and state of DB Adapter in the deployments of WLAdminConsole.
    If its inactive , redeploy and update it ,also make sure its targeted to the right server.

  • Using Coherence and Oracle Database as the CacheStore

    We are working on implementing a solution using Coherence and Oracle Database as the CacheStore. We initially implemented the Cache as a distributed-scheme which in turn uses the backing-map-scheme. We are trying to introduce transaction management and I used a scheme-ref in a transactional-scheme to point to an already existing distributed-scheme. However when I bring up the server, my custom coherence-cache-config.xml file is not recognized and Coherence comes up with the default setting. Given below is the snippet of my configuration file.
    1)     I would like to understand why the below configuration doesn’t work and am I doing it the right way? If not, what is the correct way of doing it?
    2)     There are a multiple transaction management options given in the documentation. Which are the ones that will work with a distributed-scheme and read-write-backing-map-scheme?
    3)     If transactional-schemes cannot work with distributed-scheme, what is the best way to have a distributed cache with a oracle database as a cache store?
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>id<cache-name>
    <scheme-name>example-transactional<scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <transactional-scheme>
    <scheme-name>example-transactional</scheme-name>
    <scheme-ref>distributedcustomcache</scheme-ref>
    <thread-count>10</thread-count>
    </transactional-scheme>
    <distributed-scheme>
    <scheme-name>distributedcustomcache</scheme-name>
    <service-name>DistributedCache</service-name>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <internal-cache-scheme>
    <local-scheme>
    <!--scheme-ref>categories-eviction</scheme-ref-->
    <scheme-name>inMemory</scheme-name>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>spring-bean:coherenceCacheStore</class-name>
    <init-params>
    <init-param>
    <param-name>setEntityName</param-name>
    <param-value>{cache-name}</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    <!--refresh-ahead-factor>0.5</refresh-ahead-factor-->
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>

    Hi,
    If you look at the documentation for transactional-scheme here: http://docs.oracle.com/cd/E24290_01/coh.371/e22837/appendix_cacheconfig.htm#BHCIABHA
    you will see that it says The transactional-scheme element defines a transactional cache, which is a specialized distributed cache. That means that a transactional-scheme is already a distributed-scheme.
    You will see from the same documentation above that there is no way in a transactional-scheme to configure things like cache-stores or listeners or even the backing-map-scheme as these are not supported on a transactional-scheme - so you cannot use a cache store.
    Personally I would not use transactional-scheme unless you have some really big reason to do so - the restrictions far outweigh any perceived advantage of having a transaction. There are better ways to build applications so they do not require transactions, that is what we have been doing for years with Coherence so far, and there is no real reason to change that.
    JK

  • How to copy file to another server from database using FTP in oracle

    How to copy file to another server from database using FTP in oracle.
    Please do the needfaul.

    Billy  Verreynne  wrote:
    BluShadow wrote:
    Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
    But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
    :)

  • Cannot connect properly to Oracle on Linux from Windows

    Good day all,
    I’ve got 2 virtual machines running on my Mac:
    -     Centos 5.4 with Oracle 11gR2
    -     Windows 2003 server with Oracle 10gR2
    From Linux box I have access to Oracle database on Windows box (both directly and via a database link), however from Windows I have problems accessing the oracle database on the Linux box.
    From Windows, if I try to set up a connection using Oracle’s SQL Developer using connection type “Basic”, I get “IO Error: The Network Adapter could not establish the connection”. When I use “TNS”, then it works.
    From the linux box it all works fine as the “oracle” user, but when I log on as another user (in this case “informatica”) it doesn’t work properly any more.
    To sketch what both environments look like.
    Windows:
    -     Machine name WS2003Ora10g
    -     Etc/hosts
    o     127.0.0.1 localhost
    o     #loopback adapter
    o     192.168.12.100     localhost
    o     #network adapter
    o     192.168.12.10     WS2003Ora10g
    o     # external machine
    o     192.168.12.110     ilmserver
    -     system variables
    o     TNS_ADMIN, set to network/admin path in Oracle home dir
    listener
    C:\Documents and Settings\Administrator>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-AUG-2011 17:38:06
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Start Date 24-AUG-2011 16:29:33
    Uptime 0 days 1 hr. 8 min. 33 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WS2003Ora10g)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "ora10gr2" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Service "ora10gr2XDB" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Service "ora10gr2_XPT" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\Administrator>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-AUG-2011 17:40:43
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "ora10gr2" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:25 refused:0 state:ready
    LOCAL SERVER
    Service "ora10gr2XDB" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: WS2003ORA10G, pid: 2852>
    (ADDRESS=(PROTOCOL=tcp)(HOST=WS2003Ora10g)(PORT=1031))
    Service "ora10gr2_XPT" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:25 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    Linux
    -     Machine name ilmserver
    -     Etc/hosts
    o     127.0.0.1          localhost.localdomain localhost
    o     ::1          localhost6.localdomain6 localhost6
    o     192.168.12.1     routerip     rtrip
    o     192.168.12.110     ilmserver     ilmsvr
    o     192.168.12.10     WS2003Ora10g     winora
    system variables (in bashprofile)_
    o     export PATH=$PATH:/usr/java/jdk1.7.0/bin
    o     export PATH=$PATH:/usr/sbin
    o     export PATH=$PATH:/sbin
    o     export JAVA_HOME=/usr/java/jdk1.7.0
    o     PATH=$PATH:$HOME/bin
    o     export PATH
    o     export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
    o     export ORACLE_BASE=/home/oracle/app/oracle
    o     export ORACLE_SID=orcl
    o     export TNS_ADMIN=$ORACLE_HOME/network/admin
    o     export ORACLE_HOSTNAME=ilmserver
    o     export PATH=$PATH:$ORACLE_HOME/bin
    Both the "oracle" and the "informatica" user have these environment variables.
    listener
    Logged in as “oracle” user:*
    [oracle@ilmserver ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-AUG-2011 19:12:35
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 24-AUG-2011 17:30:39
    Uptime 0 days 1 hr. 41 min. 55 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /home/oracle/app/oracle/diag/tnslsnr/ilmserver/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ilmserver ~]$ lsnrctl services
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-AUG-2011 19:13:28
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:19 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: ilmserver, pid: 9648>
    (ADDRESS=(PROTOCOL=tcp)(HOST=ilmserver)(PORT=52395))
    The command completed successfully
    But logged in as “informatica” user I get following:
    [informatica@ilmserver ~]$ lsnrctl status
    bash: lsnrctl: command not found
    [informatica@ilmserver ~]$ lsnrctl services
    bash: lsnrctl: command not found
    even though the oracle bin directory sits in PATH.
    Pinging from windows:
    C:\Documents and Settings\Administrator>ping ilmserver
    Pinging ilmserver [192.168.12.110] with 32 bytes of data:
    Reply from 192.168.12.110: bytes=32 time=1ms TTL=64
    Reply from 192.168.12.110: bytes=32 time<1ms TTL=64
    Reply from 192.168.12.110: bytes=32 time<1ms TTL=64
    Reply from 192.168.12.110: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.12.110:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms
    That works fine.
    Telnet from Windows:
    C:\Documents and Settings\Administrator>telnet 192.168.12.110 1521
    Connecting To 192.168.12.110...Could not open connection to the host, on port 1521: Connect failed
    This result is the same for either just having port 1521 open, or turning the Linux firewall off altogether. Also same when using IP address.
    Just to be complete, here are the results from the Linux box.
    *[oracle@ilmserver informatica]$ ping WS2003Ora10g*
    PING WS2003Ora10g (192.168.12.10) 56(84) bytes of data.
    64 bytes from WS2003Ora10g (192.168.12.10): icmp_seq=1 ttl=128 time=1.63 ms
    64 bytes from WS2003Ora10g (192.168.12.10): icmp_seq=2 ttl=128 time=0.222 ms
    64 bytes from WS2003Ora10g (192.168.12.10): icmp_seq=3 ttl=128 time=0.255 ms
    64 bytes from WS2003Ora10g (192.168.12.10): icmp_seq=4 ttl=128 time=0.258 ms
    --- WS2003Ora10g ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3000ms
    rtt min/avg/max/mdev = 0.222/0.593/1.639/0.604 ms
    *[oracle@ilmserver ~]$ telnet WS2003Ora10g 1521*
    Trying 192.168.12.10...
    Connected to WS2003Ora10g (192.168.12.10).
    Escape character is '^]'.
    ... works for all users.
    Checking out the port situation on Linux:
    [informatica@ilmserver ~]$ netstat -an | grep 1521
    tcp 0 0 127.0.0.1:1521 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:1521 127.0.0.1:43782 ESTABLISHED
    tcp 0 0 127.0.0.1:1521 127.0.0.1:44290 ESTABLISHED
    tcp 0 0 127.0.0.1:58289 127.0.0.1:1521 TIME_WAIT
    tcp 0 0 127.0.0.1:58287 127.0.0.1:1521 TIME_WAIT
    tcp 0 0 127.0.0.1:1521 127.0.0.1:43792 ESTABLISHED
    tcp 0 0 127.0.0.1:54116 127.0.0.1:1521 ESTABLISHED
    tcp 0 0 127.0.0.1:1521 127.0.0.1:44283 ESTABLISHED
    tcp 0 0 ::ffff:127.0.0.1:54123 ::ffff:127.0.0.1:1521 ESTABLISHED
    tcp 0 0 ::ffff:127.0.0.1:30135 ::ffff:127.0.0.1:1521 ESTABLISHED
    unix 2 [ ACC ] STREAM LISTENING 129262 /var/tmp/.oracle/sEXTPROC1521
    [ the sequence of dots means I took out a whole lot or lines with virtually the same information, only different port(s) ]
    What’s noticeable is that port 1521 seems solely assigned to the localhost IP-address, 127.0.0.1.
    Another thing I noticed is that from a different user in Linux, so not “oracle”, using SQL Developer I cannot access the local Oracle database via TNS. When choosing TNS the dropdown box for “Network Alias” – which normally is populated with entries from TNSNAMES.ORA – is completely empty. On a “users and groups” level I basically assigned all the groups the oracle user is member of, to the other user (called informatica).
    And to make it even more interesting, at first it worked using “Basic” (in SQL Developer), but since implementing the TNS_ADMIN environment variable, it doesn’t work at all !!!
    Trying it via SQLPLUS as the “informatica” doesn’t work either:
    [informatica@ilmserver ~]$ sqlplus system
    bash: sqlplus: command not found
    I’ve assigned the “dba” group to “informatica”, or rather, I have assigned all groups to the “informatica” user as the “oracle” user has.
    Needless to say I am no Linux expert, rather a quite inexperienced Linux-user.
    So bottom line, the situation I’d like to be able to create is the following:
    •     Linux Oracle DB accessible from “informatica” (or any other) user on Linux, via both TNS and java-based
    •     Linux Oracle DB accessible from remote machine (running Windows 2003 server) via both TNS and java-based
    •     And for Informatica to work properly, it says it needs the TNS_ADMIN environment variable, so the “informatica” user must have full Oracle connectivity with TNS_ADMIN in place.
    Any help is greatly appreciated.
    Thanks, Patrick

    Hi Billy,
    Thanks for your elaborate answer.
    Not sure whether I can use it though, since the application using the oracle database (i.e. Informatica ILM 5.3.2) appears to have a specific need for TNS.
    I thought I had a solution (not the prettiest for sure) by just copying TNSNAMES.ORA to an accessible location, change ownership to "informatica" user, have TNS_ADMIN point to it, and Bob should be my uncle. Well... he isn't!
    In SQL Developer when I choose TNS as connection type, the drop down box is STILL empty.....aaaaahhhh!!!!!
    I was advised to play around with primary groups, so I tried oinstall and dba as primary groups for informatica user, all to no avail.
    And I can't even test it with SQLPLUS because I don't have access to it as "informatica".
    Who knows what the exact reason for that is... I know I'm a far cry from an experienced linux user, but I assumed that having the Oracle Home bin directory in PATH, and assigning the oinstall group to informatica user, would ensure access to to any executable in there. Well... NOT!!!
    +[informatica@ilmserver ~]$ sqlplus system@orcl+
    bash: sqlplus: command not found
    This is driving me nuts. Thought that finding a solution for this wouldn't be this hard, but essentially I've been digging for 3 days now.
    To provide more background, here are the env.variables:
    [informatica@ilmserver ~]$ env
    SSH_AGENT_PID=21054
    HOSTNAME=ilmserver
    DESKTOP_STARTUP_ID=
    TERM=xterm
    SHELL=/bin/bash
    HISTSIZE=1000
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/informatica/.gtkrc-1.2-gnome2
    WINDOWID=262nnnnn
    USER=informatica
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    ORACLE_SID=orcl
    GNOME_KEYRING_SOCKET=/tmp/keyring-LXptz1/socket
    ORACLE_HOSTNAME=ilmserver
    ORACLE_BASE=/home/oracle/app/oracle
    SSH_AUTH_SOCK=/tmp/ssh-CFDat21018/agent.21018
    SESSION_MANAGER=local/ilmserver:/tmp/.ICE-unix/21018
    USERNAME=informatica
    TNS_ADMIN=/var/temp
    MAIL=/var/spool/mail/informatica
    PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/informatica/bin:/usr/java/jdk1.7.0/bin:/usr/sbin:/sbin:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
    DESKTOP_SESSION=default
    GDM_XSERVER_LOCATION=local
    INPUTRC=/etc/inputrc
    PWD=/home/informatica
    JAVA_HOME=/usr/java/jdk1.7.0
    XMODIFIERS=@im=none
    LANG=en_US.UTF-8
    GDMSESSION=default
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SHLVL=2
    HOME=/home/informatica
    GNOME_DESKTOP_SESSION_ID=Default
    LOGNAME=informatica
    CVS_RSH=ssh
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-axxxxxxxxo,guid=xxxxxxxxxxxxxxxxxxxxxxx
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    DISPLAY=:0.0
    ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
    G_BROKEN_FILENAMES=1
    COLORTERM=gnome-terminal
    XAUTHORITY=/tmp/.gdmKEYS0V
    Thanks, Patrick

  • To use Boolean function in DECODE or CASE statement

    Hi all
    I have a scenario where i need to use a boolean function inside DECODE statement. When i tried this way iam getting "ORA-06553: PLS-382: expression is of wrong type".
    I doubt whether i can use boolean function inside DECODE or not?
    My query will be like this:
    select decode(my_fuction( ),'TRUE',1,'FALSE',0) from dual;
    Any help is highly appreciated.
    Thanks
    Sriram

    Overloaded functions must differ by more than their
    return type . At the time that the overloaded
    function is called, the compiler doesn't know what type
    of data that function will return. The compiler cannot,
    therefore, determine which version of the function to
    use if all the parameters are the same.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Clusters cannot use the same multicast address

    Hello All,
    Found following error while starting of managed server in weblogic.
    error***
    <Aug 22, 2012 4:40:57 AM GMT-06:00> <Error> <Cluster> <BEA-000166> <Some other c
    luster in this domain is configured to use the same multicast address as OIM_CLU
    STER. Clusters cannot use the same multicast address.>
    error***
    I have three managed server and two cluster.
    CLUSTER NAME >> MANAGED SERVERS IN CLUSTER
    OIM_CLUSTER >> admin server and oim_server1
    SOA_CLUSTER >> SOA_SERVER1.
    I am starting servers through cammand prompt. In cammand prompt i see above error.
    How can i correct the above error ?
    Thanks in advance,
    Manohar

    Change the multicast address: http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/pagehelp/Corecoreclusterclusterconfigmulticasttitle.html
    "The multicast address used by cluster members to communicate with each other.
    The valid range is from from 224.0.0.0 to 239.255.255.255. The default value used by WebLogic Server is 239.192.0.0. You should avoid using multicast addresses in the range x.0.0.1
    This address should be unique to this cluster and should not be shared by other applications."
    Some general information on clusters: http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/pagehelp/Corecoreclustercreateclusterpagetitle.html

  • ORA-19802: cannot use DB_RECOVERY_FILE_DEST without DB_RECOVERY_FILE_DEST_S

    Hi all,
    We are using Oracle 11g R2 RAC on OEL 5.6.
    After set the db_recovery_file_dest to FRA diskgroup,
    I forgot to set the DB_RECOVERY_FILE_DEST_SIZE, and I've started an instance,
    like this:
    SQL> ALTER SYSTEM SET db_recovery_file_dest='+FRA' SCOPE=spfile;
    System altered.
    SQL> commit;
    Commit complete.
    SQL> show parameter recover
    NAME                                 TYPE        VALUE
    db_recovery_file_dest                string
    db_recovery_file_dest_size           big integer 0
    recovery_parallelism                 integer     0
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> SQL> SQL>
    SQL>
    SQL>
    SQL>
    SQL>
    SQL> startup;
    ORA-19802: cannot use DB_RECOVERY_FILE_DEST without DB_RECOVERY_FILE_DEST_SIZEI need to set the DB_RECOVERY_FILE_DEST_SIZE. How can I do this?
    I cannot to set this parameter when I startup with mount or nomount option.
    Thank you very much!

    Hi,
    So, you can set the parameter DB_RECOVERY_FILE_DEST_SIZE
    by using this other node:
    ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=<size> SCOPE=spfile;And in the first node with problems to start the instance you can start like this:
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  835104768 bytes
    Fixed Size                  2217952 bytes
    Variable Size             624953376 bytes
    Database Buffers          201326592 bytes
    Redo Buffers                6606848 bytes
    ORA-01105: mount is incompatible with mounts by other instances
    ORA-19808: recovery destination parameter mismatchThe above error is normal in this moment because you must to set
    the parameters on other node too, like this:
    node2:
    ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=<size> SCOPE=spfile;
    ALTER SYSTEM SET db_recovery_file_dest='+FRA' SCOPE=spfile;
    SHUTDOWN IMMEDIATE;
    STARTUP;
    node1:
    SHUTDOWN; (again)
    STARTUP; (now without any errors)
    Regards. :-)

  • XSU Problem:Error-- Cannot map Unicode to Oracle character

    Hi, I am using XSU to get the resultset from database(oracle 9.2.0.6.0) as XML.When I query data from some columns and get the XMLString, they give me error -"Cannot map Unicode to Oracle character". The database charset is "US7ASCII" .
    One column is storing Chinese with ''US7ASCII".When xmlString Result contianer
    the column,there is "oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character".But If xmlString Result don't container that column,it run very good.
    The program container these libs: ojdbc14.jar,xmlparserv2.jar,xdb.jar,nls_charset12.jar,xsu12.jar.
    The program code:
    public class OracleXmlParse {
    public static void main(String[] args) {
    try{
    DriverManagerDataSource dataSource = new DriverManagerDataSource("oracle.jdbc.driver.OracleDriver",
                        "jdbc:oracle:thin:@168.1.1.136:1521:imis","ims","ims");
    String selectSQL = "select AREA_CODE,AREA_NAME,REGION_CODE,AREA_NAME_CN from CDM_AREA";
    OracleXMLQuery query = new OracleXMLQuery(conn,selectSQL);
    query.setEncoding("UTF-8");
    String str = query.getXMLString();
    System.out.println(str);
    conn.close();
    }catch(SQLException e){
                   e.printStackTrace();
    Exception:
    Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character.
         at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:1015)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:267)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:221)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:198)
         at procedure.OracleXmlParse.main(OracleXmlParse.java:34)
    The column that store chinese is AREA_NAME_CN .When "selectSQL " is equal to "select AREA_CODE,AREA_NAME,REGION_CODE from CDM_AREA",the program is ok.
    Please help.
    Message was edited by:
    user542404
    Message was edited by:
    user542404

    So, What is the solution ? Is there something I can do in my code ? My program gives the exception and stops. I am not even interested to fetch the data, which are giving this error.

  • SOA 10.1.3.3 Application server cannot use db 11.1.0.6.0 for orabpel user

    RDBMS Version: 11.1.0.6.0
    Operating System and Version: win 2000 sp4
    Error Number (if applicable):
    Product (i.e. SQL*Loader, Import, etc.): SOA Suite Application Server 10grel3
    Product Version: 10.1.3.3
    SOA 10.1.3.3 Application server cannot use db 11.1.0.6.0
    For testing purposes I would like to setup a new system with Oracle Aopplication Server 10g rel 3 (10.1.3.3) Soa suite on top of an already installed Oracle Database 11.g (11.1.0.6.0)
    Database 11g was installed on the server
    During installation of the Application server 10g3(Full install) a database is needed (for orabpel schema etc), but the installer checks if the version of the database is higher than 9i2 . This check fails and installation cannot continue. I think this is because the check is not really if it is higher than 9i but it is looking for a predefined range of versions from V$VERSION and 11 is not within that range
    Is there a possibility to overcome this? This is not a prerequisite check from OUI, but another check later on during install
    I know that 11g is not certified yet for AS1og3, but this is a development environment to practice with the new releases.

    I know that 11g is not certified yet for AS1og3, but
    this is a development environment to practice with
    the new releases.If the combination is not certified, it's not much of a development platform, right?

  • Exception:org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection

    Hi All,
    i am using jdev version 11.1.1.5.0
    and deployed my Adf application on Apache Tomcat 6.0.
    in my use case i have created simple adf application using adf business component. create a vo based on eo and drag-drop on jspx page.
    i have created JNDI data source in Apache server using edit context.xml file and add following line-
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"  accessToUnderlyingConnectionAllowed="true" />
    3.using same data source in my adf applicatioin as -
      right click on AM --> Configuration-->edit-->select connection type jdbc datasource  -->java:/comp/env/jdbc/TestDB  
    4. after that i have deployed my application on apace server but when i have running application i have got following error-
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
    i have goggling and find  following solution-
    oracle.jdbc.driver.OracleConnection delConn = (oracle.jdbc.driver.OracleConnection) ((org.apache.tomcat.dbcp.dbcp.DelegatingConnection)c_stmt.getConnection()).getDelegate();
    but my problem is that i'm using Adf Business Component so where i set following type casting.
    Is there any method on ADF BC which handle JNDI Data source setting or any other way to do this.
    thanks in Advance
    Manish

    Hi dvohra21,
    thanks for reply.
    i don't understand where i go to set accessToUnderlyingConnectionAllowed =true
    i have already set this property on context.xml file
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"  accessToUnderlyingConnectionAllowed="true" />
    any other place where i set this propery
    please elaborate this steps how to Configuree DBCP

  • Error: Cannot find the assembly Oracle.DataAccess

    Hi, I've this problem when any program use a connection with Oracle provider over any server (2 distinct server access to Oracle 9i with forms applications).
    The specific error is:
    Cannot find the assembly Oracle.DataAccess, Version=1.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342.
    This problem is resolve (temporary) executing:
    Alter Procedure <<Any procedure valid name>> compile
    But this is not an elegant solution.
    Please, ODP save something else in memory than executing this sentence clear an resolve this situation ??
    Exists any solution for this problem ??
    Thank for advance..
    Claudio

    This sounds odd - I don't see how compiling an Oracle procedure would help .NET to locate an assembly - you're not trying to run an assembly inside Oracle are you?
    Tell is more about what you're trying to do. If this is just a common program that is running on a server and trying to connect to Oracle, it sounds like ODP is not installed on the computer that is running this code. You should see Oracle.DataAccess in the GAC.
    Eric

Maybe you are looking for

  • Apple Remote Desktop Client slow in mini

    I'm using Apple Remote Desktop from my PowerBook. I can control an iMac G5 without any problems, but controlling my new intel Mini is very very slow... i can only work more or less if i put the screen without colors! Is this normal? I can't understan

  • In-house Documentation

    Recently I launched a new project to electronically document our IT infrastructure, procedures, policies, etc. During this, I realized that I could also provide this as a service/system to other groups within the organization for similar purposes (th

  • Inspire 5.1 5300 sound problem

    Hello, My Inspire sound system was working very well until now. Now when i power up i get a constatnt hum on the speakers. This hum is even when the incoming cable from the sound card is disconnected. The lamp of the volume regulator comes on when it

  • Extended Star Schema

    Hi Right now I'm trying to implement SAP HR Infotypes into SAP BW. I try to combine 10 infotypes (all Personal Administration) into one infocube. The confusing one is that when I see my dimension, there something strange (please see below) Dimension

  • Failed to start the Oracle Application Testing Suite Helper Service

    Hi, I am getting this error. I tried to install the HelperService batch file. But it's of no use. Appreciate any help regarding this.