Unable to connect SQL Developer 4.0.2 to Oracle REST Data Services 2.0.7 (Apex Listener)

Background
1. Weblogic 10.3.6.0 running on Oracle Linux 6.5 with Oracle JRockit(R) (build R28.2.3-13-149708-1.6.0_31-20120327-1523-linux-x86_64, compiled mode)
2. Oracle Apex 4.2.1
3. Apex Listener 1.1.3
4. Apex and Apex Listener running on the Weblogic box above
5. SQL Developer 4.0.2 running on Windows 7 64 bit / Java 1.7.0_55
Updated Apex to 4.2.5 via p17966818_425_Generic.zip patchset. Apex environment running fine as do all applications via Listener 1.1.3
Updated Oracle Listener to the latest version of Oracle REST Data Services 2.0.7
Current Status
Apex Applications and RESTful services are running fine.
Problem
Unable to connect SQL Developer 4.0.2 to Oracle REST Data Services 2.0.7
Error message in SQL Developer - Cannot connect to DEV. HTTP/1.1 403 Target service not allowed
Additional Information
Steps followed -
1. The oracle users APEX_LISTENER and APEX_REST_PUBLIC_USER did not exist, so I ran apex_rest_config.sql from the APEX 2.4.1 patchset whilst connected sys as sysdba and provided the same password as APEX_PUBLIC_USER for both users.
2. I also ran
grant insert, delete on APEX_040200.wwv_flow_rt$privilege_groups to APEX_LISTENER;
alter session set current_schema = APEX_LISTENER;
create or replace synonym wwv_flow_rt$privilege_groups for APEX_040200.wwv_flow_rt$privilege_groups;
as per Oracle SQL Developer User's Guide Release 4.0
3. copied ords.war to apex.war
4. java -jar apex.war configdir /u01/app/oracle/admin/apex/devdomain1/
5. java -jar apex.war
Jun 5, 2014 5:15:31 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: /u01/app/oracle/admin/apex/devdomain1/apex
Enter the name of the database server [localhost]:dbservername
Enter the database listen port [1521]:
Enter 1 to specify the database service name, or 2 to specify the database SID [1]:1
Enter the database service name:dbservicename
Enter the database user name [APEX_PUBLIC_USER]:
Enter the database password for APEX_PUBLIC_USER:
Confirm password:
Enter 1 to enter passwords for the RESTful Services database users (APEX_LISTENER,APEX_REST_PUBLIC_USER), 2 to use the same password as used for APEX_PUBLIC_USER or, 3 to skip this step [1]:2
Jun 5, 2014 5:16:52 PM oracle.dbtools.common.config.file.ConfigurationFiles update
INFO: Updated configurations: defaults, apex, apex_al, apex_rt
Enter 1 if you wish to start in standalone mode or 2 to exit [1]:2
6. java -jar apex.war user adminlistener "Listener Administrator"
Jun 5, 2014 5:18:52 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: /u01/app/oracle/admin/apex/devdomain1/apex
Enter a password for user adminlistener:
Confirm password for user adminlistener:
Jun 6, 2014 5:19:12 PM AM oracle.dbtools.standalone.ModifyUser execute
INFO: Created user: adminlistener in file: /u01/app/oracle/admin/apex/devdomain1/apex/credentials
7. Updated the defaults.xml file
Added
<entry key="apex.security.user.roles">RESTful Services</entry>
<entry key="apex.security.developer.roles">OAuth2 Client Developer, SQL Developer</entry>
as per Oracle SQL Developer User's Guide Release 4.0
Changed
<entry key="debug.printDebugToScreen">false</entry>
to
<entry key="debug.printDebugToScreen">true</entry>
for RESTful debugging
Added
<entry key="security.verifySSL">false</entry>
to use OAuth2 in Non HTTPS Environment as per Oracle® REST Data Services Installation and Configuration Guide, Release 2.0
8. Deleted the Admin and Manager Roles within the apex application deployment which were part of the Apex Listener 1.1.3 install
9. Deployed the apex.war in weblogic
10. Stopped and started the weblogic server to which apex.war was deployed
11. In SQL Developer, View, RESTful Services. In the RESTful services windows hit connect, Create a new connection,
Connection Name DEV
Username adminlistener
selected http protocol
Hostname weblogicservername
Port 7250
Server Path /apex
Workspace (blank)
On the Authentication dialog
Username adminlistener
Password passwordsuppliedabove in step 6
Response is a dialog box titled Authentication Failed
message - Cannot connect to DEV. HTTP/1.1 403 Target service not allowed
NOTHING UNUSUAL IN ANY OF THE WEBLOGIC LOG FILES, EXCEPT THAT IT STATES
'Oracle REST Data Services version : 2.0.6.27.18.06' when I've installed 2.0.7.
Any help much appreciated

Further to the above post, I thought I'd simplify my Apex Listener install just to see if I can connect to it via SQL Developer
So downloaded the latest version 2.0.8 and decided to configure and run the Listener on my pc whilst still connecting to the same database.
Operating system : Window 7 Pro 64 bit
Oracle Apex Listener 2.0.8
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Went through the configuration as above, once started I tried again to access the listener via SQL Developer. This time I received this output from the listener:
INFO: Error: ORA-02291: integrity constraint (APEX_040200.WWV_FLOW_RT$APPROVALS_SGID_FK) violated - parent key not found, occurred during execution of: [CALL, insert into wwv_flow_rt$approvals (user_name,status,client_id,security_group_id,created_by,created_on,updated_by,updated_on) values(/*in:user_id*/?,/*in:status*/?,/*in:client_id*/?,/*in:tenant_id*/?,upper(/*in:user_id*/?),/*in:created*/?,upper(/*in:user_id*/?),/*in:created*/?), [tenant_id, in, class java.math.BigInteger], [client_id, in, class java.math.BigInteger], [user_id, in, class java.lang.String], [status, in, class oracle.dbtools.rt.oauth.ApprovalRequest$Status], [created, in, class java.sql.Timestamp]]with values: [adminlistener, APPROVED, 3858401374580004, -1, adminlistener, 2014-06-23 12:19:18.785, adminlistener, 2014-06-23 12:19:18.785]
SQL Developer responded with an Authentication Failed titled dialog with the following displayed in the body of the dialog
Cannot connect to DEV.
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7 no-css3"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8 no-css3"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html>
<!--<![endif]-->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<style type="text/css" media="screen">html,body,div,span,h3,p,ol,ul,li,header,hgroup{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}header,hgroup{display:block}body{font:normal 12px/16px Arial,sans-serif;margin:0 auto;background:#6a9cda}header#xHeader{border-bottom:1px solid #8fa4c0;position:relative;z-index:10;background:none #000}header#xHeader hgroup{width:974px;margin:0 auto;position:relative;height:36px;background:none #000}header#xHeader a#uLogo{margin:8px 0;display:inline-block;font:bold 14px/20px Arial,sans-serif;color:#AAA;text-decoration:none}header#xHeader a#uLogo span.logo{color:#F00}.no-css3 div#xContentContainer div.xContent{padding-top:14px}.no-css3 div#xContentContainer div.xContent div.xMainLeft h2{margin-top:0}div#xWhiteContentContainer{margin-bottom:30px}div#xWhiteContentContainer.xContentWide{background:#FFF;margin-bottom:0}div#xWhiteContentContainer.xContentWide div.xWhiteContent{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}div#xWhiteContentContainer div.xWhiteContent{width:974px;margin:0 auto;padding:0 0 20px 0;background:#FFF;min-height:500px;-moz-border-radius:0 4px 4px 4px;-webkit-border-radius:0 4px 4px 4px;border-radius:0 4px 4px 4px;-moz-box-shadow:0 1px 2px rgba(0,0,0,0.15);-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.15);box-shadow:0 1px 2px rgba(0,0,0,0.15)}div#xContentHeaderContainer{background:#6a9cda;-moz-box-shadow:0 -1px 0 rgba(0,0,0,0.15) inset;-webkit-box-shadow:0 -1px 0 rgba(0,0,0,0.15) inset;box-shadow:0 -1px 0 rgba(0,0,0,0.15) inset}div#xContentHeaderContainer div.xContentHeader{width:974px;margin:0 auto;padding:30px 0 32px 0;position:relative;min-height:60px}div#xContentHeaderContainer div.xContentHeader h3{font:bold 24px/24px Arial,sans-serif;color:#fff;text-shadow:0 2px 1px rgba(0,0,0,0.25);margin:0 0 20px 0}div#xFooterContainer{min-height:200px;border-top:1px solid rgba(0,0,0,0.15);background:#6a9cda}body.errorPage div#xContentHeaderContainer div.xContentHeader{min-height:30px}body.errorPage div#xContentHeaderContainer div.xContentHeader h3{font:bold 30px/30px Arial,sans-serif;color:#FFF;text-shadow:0 1px 2px rgba(0,0,0,0.25);margin:0}div.errorPage p{font:normal 14px/20px Arial,sans-seri;color:#666;padding:0 0 10px 0}div.errorPage ul{list-style:disc outside;padding:0 10px 0;margin:0 0 20px 0}div.errorPage ul li{font:normal 12px/16px Arial,sans-serif;color:#666;margin:0 0 8px 10px}pre{font-family:Consolas,"Lucida Console","Courier New",Courier,monospace}
</style>
<script type="text/javascript" charset="utf-8">
  'header hgroup'.replace(/\w+/g,
  function(n) {
  document.createElement(n)
</script>
<title>Internal Server Error</title>
</head>
<body class="errorPage">
  <header id="xHeader">
  <hgroup>
  <a id="uLogo" href="./"><span class="logo">ORACLE</span>
  REST DATA SERVICES</a>
  </hgroup>
  </header>
  <div id="xContentHeaderContainer">
  <div class="xContentHeader">
  <h3>
  <span class="statusCode">500</span> - <span
  class="statusMessage">Internal Server Error</span>
  </h3>
  </div>
  </div>
  <div id="xWhiteContentContainer" class="xContentWide">
  <div class="xWhiteContent">
  <div class="errorPage">
  <p>
  <ul class="reasons">
  </ul>
  </p>
  <p>
  <pre>Request Path passes syntax validation
Mapping request to database pool: PoolMap [_failed=false, _lastUpdate=-1, _pattern=null, _poolName=apex, _regex=null, _type=REGEX, _workspaceIdentifier=null, _serviceName=null]
Applied database connection info
Attempting to process with PL&#x2F;SQL Gateway
Not processed as PL&#x2F;SQL Gateway request
Attempting to process as a RESTful Service
Choosing: oracle.dbtools.rt.oauth.TokenHandler as current candidate with score: Score [handle=null, score=0, scope=SecurityConfig [constraint=secure, realm=OAUTH_CLIENT, logonConfig=NONE], originsAllowed=[], corsEnabled=true]
Determining if request can be dispatched as a Tenanted RESTful Service
Request path has one path segment, continuing processing
No Tenant Principal established yet, continuing processing
APEX_LISTENER pool exists, continuing processing
No matching tenant found for: oauth2, cannot dispatch
Chose oracle.dbtools.rt.oauth.TokenHandler as the final candidate with score: Score [handle=null, score=0, scope=SecurityConfig [constraint=secure, realm=OAUTH_CLIENT, logonConfig=NONE], originsAllowed=[], corsEnabled=true] for: POST oauth2&#x2F;token
oauth2&#x2F;token authorized as: p6xycV-2QceFnFHkWyJlnA..
</pre>
  </p>
  <p>
  <pre>WebException [statusCode=500]
  at oracle.dbtools.rt.web.WebException.webException(WebException.java:343)
  at oracle.dbtools.rt.web.WebException.internalError(WebException.java:262)
  at oracle.dbtools.rt.oauth.jdbc.JDBCOAuthDataAccess.createApproval(JDBCOAuthDataAccess.java:514)
  at oracle.dbtools.rt.oauth.jdbc.JDBCOAuthDataAccess.createApprovedRequest(JDBCOAuthDataAccess.java:181)
  at oracle.dbtools.rt.oauth.OAuthAuthorization.resourceOwnerCredentials(OAuthAuthorization.java:654)
  at oracle.dbtools.rt.oauth.OAuthAuthorization.tokenRequest(OAuthAuthorization.java:273)
  at oracle.dbtools.rt.oauth.TokenHandler.post(TokenHandler.java:44)
  at oracle.dbtools.rt.web.RequestHandler.response(RequestHandler.java:268)
  at oracle.dbtools.rt.web.RequestHandler.dispatch(RequestHandler.java:361)
  at oracle.dbtools.rt.web.RequestHandler.dispatch(RequestHandler.java:85)
  at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:93)
  at oracle.dbtools.rt.web.ETags.checkPrecondition(ETags.java:93)
  at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:426)
  at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:164)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059)
  at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999)
  at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
  at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:91)
  at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
  at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
  at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
  at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
  at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
  at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
  at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
  at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
  at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
  at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
  at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
  at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
  at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
  at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
  at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
  at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (APEX_040200.WWV_FLOW_RT$APPROVALS_SGID_FK) violated - parent key not found
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
  at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
  at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
  at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
  at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
  at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)
  at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1046)
  at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
  at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
  at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
  at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
  at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:230)
  at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124)
  at com.sun.proxy.$Proxy44.execute(Unknown Source)
  at oracle.dbtools.common.jdbc.JDBCInsert.execute(JDBCInsert.java:58)
  at oracle.dbtools.rt.oauth.jdbc.JDBCOAuthDataAccess.createApproval(JDBCOAuthDataAccess.java:487)
  ... 34 more
</pre>
  </p>
  </div>
  </div>
  </div>
  <div id="xFooterContainer">
  </div>
</body>
</html>
I am assuming this must be part of the problem I am seeing this the Weblogic deployment in my original post.
Does anyone have any suggestions on how best to tackle this?
Regards,
Derek

Similar Messages

  • Unable to connect SQL State=S1000 [Oracle][ODBC][Ora]ORA-12170:

    Hi all,
    I have an Windows XP OS with SP3.
    I have installed the Oracle 11g server.
    On trying to connect to the ODBC connection, i get the following error message:
    Unable to connect SQL State=S1000 [Oracle][ODBC][Ora]ORA-12170: TNS: Connect timeout occured
    On trying the tnsping,
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 09-OCT-2
    011 13:11:05
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    E:\app\Gautam\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.
    5.207)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl))
    TNS-12535: TNS:operation timed out
    On trying to connect with SQL Developer, i get the following error:
    Status: Failure - Test failed: Io Exception: The Network Adapter could not establish the connection
    However i am able to connect to the same using SQL Plus
    Another issue that occurs is that the Oracle Enterprise Manager shows the following error after a while:
    Agent Connection to Instance
    Status Failed
    Details ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    The following services are all up during this point of time:
    OracleDBConsoleorcl
    OracleOraDb11g_home1TNSListener
    OracleServiceORCL
    Any help in this regard will be very useful as this is hindering the progress of my work.
    Thanks in advance for the help.
    - Gautam

    841683 wrote:
    Hi,
    I did try and delete my listener.ora and then create a new one..
    That did not solve my issue..
    What are the steps for configuring the listener again.
    Thanks for the response..
    - Gautamno listener.ora file is required.
    just do as below
    lsnrctl start

  • Having trouble connecting SQL Developer to database on LINUX machine

    Having trouble connecting SQL Developer to database on LINUX machine
    Hello,
    I am trying to connect my windows 7 home premium machine to an oracle database 11g on a RedHat 5 machine using SQL Developer. i got this error message on SQL Developer
    Status : Failure - Test failed :The Network Adapter could not establish the connection
    on Linux
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                03-APR-2013 16:13:13
    Uptime                    7 days 22 hr. 16 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orc11g" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11gXDB" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11g_XPT" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> and TNSPING
    tnsping 172.x.x.x
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521)))
    OK (0 msec)
    [oracle@ltebilling ~]$Tnsnames.ora On Linux ,
    ORC11G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orc11g)
    )Listner on Linux ,
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    )/ect/hosts Linux ,
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    172.x.x.x             LTEBillingand there is no problem of ping linux from windows
    Edited by: user11309581 on Apr 11, 2013 3:16 PM

    yes really i'm already enaple the port 1521 and SELINUX=disabled
    [root@ltebilling ~]# /etc/init.d/iptables status
    Table: filter
    Chain INPUT (policy ACCEPT)
    num  target     prot opt source               destination
    1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0
    Chain FORWARD (policy ACCEPT)
    num  target     prot opt source               destination
    1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0
    Chain OUTPUT (policy ACCEPT)
    num  target     prot opt source               destination
    Chain RH-Firewall-1-INPUT (2 references)
    num  target     prot opt source               destination
    1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
    2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           icmp type 255
    3    ACCEPT     esp  --  0.0.0.0/0            0.0.0.0/0
    4    ACCEPT     ah   --  0.0.0.0/0            0.0.0.0/0
    5    ACCEPT     udp  --  0.0.0.0/0            224.0.0.251         udp dpt:5353
    6    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:631
    7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:631
    8    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
    9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:1521
    10   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
    11   REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibitedbut from windows system when i'm try tnsping i got this error
    C:\Windows\system32>tnsping orc11g
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 11-APR-2
    013 14:44:09
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    D:\app\ubai\product\11.2.0\dbhome_2\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x
    .x)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orc11g))
    TNS-12535: TNS:operation timed out
    C:\Windows\system32>

  • Connect SQL Developer to APEX 4.0

    I've just installed SQL Developer 3.0 and i want to connect it to my 10g XE database.
    I APEX i have an account with all my applications tables and procedures, etc. The problem is that i can't access this account from SQL*Plus or from SQL Developer.
    Any tip about how to connect SQL Developer to my APEX account?
    Kind Regards,
    Cearnau Dan

    Hi,
    With SQL Developer you connect to database user/schema.
    It is totally different thing than Apex users.
    Apex users "lives in" workspace.
    And database user/schema is what you assign to Apex workspace and use as application parsing schema.
    I'm bad explain, but check this
    http://download.oracle.com/docs/cd/E17556_01/doc/appdev.40/e15516/intro_app.htm#BCEDHHHG
    Regards,
    Jari

  • Unable to download SQL Developer

    I can't download the current version of SQL Developer. Would someone at Oracle please see what's wrong? Just getting a page not found error...

    thank you

  • How do you expose PL/SQL Webpages via REST Data Services?

    I am in a bit of a pickle.  I have a 3rd party vendor which wants to send data back us.  They do it via a standard http form post to a webservice (actually with normal html form inputs) that we have to implement.  I have this done in the form of a PL/SQL package.  Now the hard part.....before we decommissioned our Oracle HTTP server and went to using REST Data Services, we could just reference the schema and procedure name via the DAD.  We no longer have a web tier environment at our disposal, just Weblogic Servers and REST Data Services plus the database running APEX.  Is there any way that I can build/publish an end point that can receive normal post transactions (they do not and will not communicate with us using SOAP, REST, or XML).  What I am basically needing is to get my PL/SQL out there where it can work as an old fashion form processor taking the POST/GET parameters and then processing them.  Is there any way to do this with REST Data Services or APEX? 

    Try changing:
    UPDATE exav.problems
    SET active_with = null
    WHERE active_with='''|| user_id ||''';
    to:
    UPDATE exav.problems
    SET active_with = null
    WHERE active_with = user_id;
    You only need to add the quotes if you are building a string to be executed dynamically, like:
    EXECUTE IMMEDIATE
    'UPDATE exav.problems
    SET active_with = null
    WHERE active_with='''|| user_id ||'''';

  • Unable to connect SQL server 2005 databse with JSF applications !

    Hello guys!
    Help me out to connect SQL server 2005 Databse with JSF applications using JDBC-ODBC bridge. I'm working with Netbeans 6.1 IDE.
    I tried for the basic applications but instead got this error:
    "unable to deploy jdbc drivers to the <project>domain/lib"
    Please help me out with working sample codes that connects MS SQL server 2005 DB with JSF!!
    Thank you guys!

    1) don't use the bridge driver
    2) don't do database access from JSF
    3) learn how to use your application server
    4) learn how to use your IDE

  • Problem in connecting SQL developer to Oracle database

    Hi,I don't know this is the correct forum for my problem
    I Just installed   Oracle Sql developer 3.2.I encountered a problem while creating a new connection with Oracle database 11g..
    The error message says "Status : Failure -Test failed: The Network Adapter could not establish the connection"..
    The command response as follows
    lsnrctl stop
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:52
    :56
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-01190: The user is not authorized to execute the requested listener command
    lsnrctl start
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:55
    :49
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    TNS-01106: Listener using listener name LISTENER has already been started
    lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:57
    :07
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date                31-OCT-2013 20:57:07
    Uptime                    0 days 1 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\app\RIYAS\product\11.2.0\dbhome_1\network\admin\lis
    tener.ora
    Listener Log File         c:\app\riyas\diag\tnslsnr\RIYAS-PC\listener\alert\log.
    xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    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
    lsnrctl service
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:58
    :28
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:102 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: RIYAS-PC, pid: 1828>
             (ADDRESS=(PROTOCOL=tcp)(HOST=RIYAS-PC)(PORT=49911))
    The command completed successfully
    set
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\RIYAS\AppData\Roaming
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=RIYAS-PC
    ComSpec=C:\windows\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\RIYAS
    LOCALAPPDATA=C:\Users\RIYAS\AppData\Local
    LOGONSERVER=\\RIYAS-PC
    NUMBER_OF_PROCESSORS=4
    OS=Windows_NT
    Path=C:\app\RIYAS\product\11.2.0\dbhome_1\bin;C:\app\RIYAS\product\11.2.0\dbhome
    _2\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common
    Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsof
    t Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\
    Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\wi
    ndows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPo
    werShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
    C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program File
    s (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\I
    ntel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Open
    CL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Progra
    m Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\P
    rogram Files (x86)\Windows Live\Shared
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=3a09
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\windows
    TEMP=C:\Users\RIYAS\AppData\Local\Temp
    TMP=C:\Users\RIYAS\AppData\Local\Temp
    USERDOMAIN=RIYAS-PC
    USERNAME=RIYAS
    USERPROFILE=C:\Users\RIYAS
    windir=C:\windows
    windows_tracing_flags=3
    windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
    Pls help..

    You don't say what you have done to set up a connection.
    This error is usually caused by something like using the wrong host name, or port number.

  • How to connect sql developer OE schema and Hr schema,

    Hi ,
    I downloaded Oracle 10g express edition and SQL developer downloaded in my computer, I don't know how to connect to OE and HR schema, by default the SQL developer and Oracle 10g has only sytem and sys database. And as well I wanted to migrate datas from third party datas , could anyone please , pllease guide me. I am new to this field and just started to learn. what is listener and how to activate Listener and Repositary
    Please guide me.
    Thanks in advance
    Chan

    The HR schema installs fine in XE, but the OE schema doesn't quite. I've done it, but there will be errors. The reason is that the OE schema uses some features of XML DB that are not supported in XE. If you want to use the OE schema in XE and you don't mind if it isn't a complete OE schema, then you can get the installation scripts from an Oracle SE or EE installation.
    You can also get it from the companion disk for Oracle SE or EE, but this is a bit challenging, because you can't get it by running OUI unless you first install Oracle SE or EE. You need to run an archive utility like WinZip or 7-Zip and look for the scripts inside a compressed file - I forget which one, but I'll look it up if you like. Oh, and since the OE schema isn't really supposed to be installed on XE, Oracle does not support any of the methods for putting it there.

  • Unable to update SQL Developer 4.0 EA1 to EA2

    Hi All
    Could any one please help me in updating SQL Developer 4.0 EA1 to EA2 using a Local File installation... I have a proxy which is blocking me from updating my SQL Developer..
    I would appreciate if any once could share any link which contains a patch to upgrate to EA2 from EA1
    Thanks
    Regards
    Avinash

    Hi Avinash,
    as it is mentioned in the official release notes page (Oracle SQL Developer 4.0 Early Adopter Release Notes):
    The Check for Updates option to upgrade between releases of SQL Developer is not supported. This utility is provided to install third party extensions, this includes the third party drivers required for migrations and to add additional version control extensions.
    All new releases of SQL Developer require a full installation. Download and unzip the file into an empty folder. Ensure the "Use folder names" checkbox is checked when unzipping the file.
    Migrating from Previous Releases
      After you have installed the product you are asked if you want to migrate from a previous release. This migrates previously set preferences and connections created: By default the Confirm Import Preferences dialog that is displayed selects the latest installation. Select Yes to migrate the settings from that release or click the Show All Installations button to browse to an earlier installation..."
    Hope it helps,
    Paolo

  • Problem connecting SQL Developer 1.5.1 with Subversion 1.5 (win XP)

    Hi I'm trying to connect the latest version of SQL Developer 1.5.1 to an svn version 1.5 repository.
    I'm on a win XP machine. (svn is on Linux red hat)
    The error I see is;
    Testing read access for repository svn://<xxxxxxxxxxx>/var/svn...
    svn: Malformed network data
    svn: Malformed network data
    Access refused.
    I'm able to connect to other (older versions of svn) repositories.
    I notice that SQL Developer uses SVNkit 1.1.6. and I have a feeling that this is not compatible with svn 1.5
    Has anyone encountered this problem or has anyone successfully connected SQL DEV 1.5.1 to SVN 1.5?
    Regards,
    Patrick
    note: the svn repository is a source code repository. (.java .class and .sql files.)
    there is no DB data there, and no DB schema. (other than in the .sql files)
    I'm saying this because I'm not an SQL specialist, (and even then, I'm mainly mysql!) and I seem to get the impression that source control to SQL guys might mean something slightly different. i.e. versioning a DB rather than the source code that creates a DB. If I'm wrong about this, apologies! ;)
    Message was edited by:
    user651051

    note: the svn repository is a source code repository. (.java .class and .sql files.)
    there is no DB data there, and no DB schema. (other than in the .sql files)
    I'm saying this because I'm not an SQL specialist, (and even then, I'm mainly mysql!) and I seem to get the impression that source control to SQL guys might mean something slightly different. i.e. versioning a DB rather than the source code that creates a DB. If I'm wrong about this, apologies! ;)There are arguments both ways, but the current implementation in SQLDeveloper only supports version control on source files. IMO there needs to be a link between the vc repository, the source file you are working on and the object it creates in the database.
    As it stands, you can edit and compile a procedure in the database, but if you don't remember to extract it back to its source file, you end up with a mismatch. Similarly, if you edit the source file and forget to run it into the database you end up with a mismatch.

  • Problem connecting sql developer with a remote database MAc OSX Snow Leopar

    Hi everyone, sorry for my poor english but i don 't speak this language.
    I'm trying to connect Sql develper to a remote database and it does not work, showing this error: The Network Adapter could not establish the connection.
    Before running sql developer i install the oracle instant client and sql plus, i use the same tnsnames.ora file as my windows machine and sqlplus (in snow leopard) connect perfect.
    i set the path of my tnsnames in the setup of sql developer but i can't do it work.
    Anyone can help me please? thanks a lot.

    Duplicate thread Problem running Sql developer in Mac OSX Snow Leopard.

  • HOW TO CONNECT  SQL DEVELOPER FROM REMOTE DATADASE 11g SEREVER

    HI
    WE ARE USEING ORACLE 11g AS PRODUCTION DATA BASE SERVER ON (O.S -WINDOWS SERVER 2008 WITH JAVA 1.5)
    I WANT TO CONNECT ORACLE 11g(PRODUCTION DATA BASE) FROM THE SQL DEVELOPER(VERSION -sqldeveloper-3.0.03.45)--- installed on (WINDOWS XP PROFESSIONAL VERSION 2002 SP 3) but iam connect ing iam getting error like THIS
    AFTER ENTERING USERNAME,PASSWORD,HOSTNAME,PORT,SID
    THEN
    I CLICK TEST
    I FOUND THIS STATUS :FAILURE -TEST FAILED:IO EXCEPTION:BREAK PACKET WAS RECEIVED.
    CAN ANY ONE PLEASE PROVIDE SOLUTION FOR THIS PROBLEM
    THANK AND REGARDS.
    ANJANEYULU.n
    DBA-UEPL.
    Edited by: 794752 on May 16, 2011 11:06 PM

    Hi 794752,
    -Does remote sqlplus work from the same XP machine?
    -Have you tried thin (default) or thick (with 11.2 instant client) in SQLDeveloper?
    -Have you other Oracle software on the XP machine? If so you may have to set ORACLE_HOME in your cmd session to the SQLdeveloper software such that %ORACLE_HOME%\jdbc\lib exists, (so SQLDeveloper does not try your existing ORACLE_HOME).
    Please do not use all CAPITALS.
    -Turloch
    SQLDeveloper Team

  • Connection sql developer

    Hi, I have problems to create a new connection on sql developer. I I create the new connection, the subject, but then when I turn off the computer and then turn it on, starting sqldeveloper, the connection is gone. How can I do? Thank you all for your patience

    What version of SQL Developer? What operating system?
    You may not have permissions to the SQL Developer system directory (on windows  c:\users\<username>\appdata\roaming\sql developer, I think).

  • Has anyone tried to connect SQL Developer to a FOXPRO database

    Any ideas what this would take?

    This may work for you. Create an empty Access database. Setup an ODBC connection in Windows to your Foxpro tables. Newer versions of Access no longer support table linking to Foxpro. Within Access link to the Foxpro tables (in 2007 this is under External Data, More, ODBC). Test that it works in Access. If it works, then make sure that System tables are viewable in Access, and exit Access (closing the database). In SQL Developer, you can create a connection to the Access database, and it should allow you to query the Foxpro tables via Access. I haven't tried it with Foxpro, but it works for other types of tables so it should work e.g. Paradox.

Maybe you are looking for

  • Problem with Windows 8.1 (64 bit) install

    I purchased PS 5.0 many years ago and purchased the upgrade to PS 7.0 a couple or so years ago.  I can't seem to install it on my new (Lenovo) computer that runs the Windows 8.1 (64 bit) OS.  Please Help.

  • Is there a way to import metadata to wav files in my library?

    Is there a way to import metadata to wav files in my library? I have about 1,500 .wav files that are presently in my iTunes library, but as most of you are aware .wav files have their limitations with regard to how iTunes translates their specific tr

  • Refurbished iPad mini (32 GB / Just Wi-Fi)

    If I want to get a refurbished 32 GB iPad mini with just Wi-Fi, but one is not available in the Refurbished/Clearance online store on the Apple website, is there a way I can be contacted when one does become available to buy, like a waiting list? I d

  • Ipod mini playlist

    I recently had my original ipod mini replaced with a new one due to a faulty battery. I have connected up my new ipod and wanted to transfer my original playlist onto this new ipod. It has since produced two play lists. One is the old list and the ne

  • Hp pavilion dv2910us No Bluetooth Device was detected.........

    Hello........ My Hp pavilion dv2910us after install windoas 7 when i try to install my bluetooth driver its say No Bluetooth device was detected............. i try SP38167 And SP46038 but same error .............. what to do............. is it driver