SCANIP not connect sql developer
I install rac 11gr2 on Oracle Enterprise Linux 5.7
but i not use SCANIP connect
I use sql developer of client (example notebook) connect by use SCANIP not connect but I use ip address direct can connect
Why?
Thank you very much
Edited by: 891982 on Dec 4, 2011 5:28 AM
I install client but I connect go to ip of scan but find error
ora-12545 connect failed because target
resolve ?
in client
I not want resolve in file hosts
Thank you
Edited by: 891982 on Dec 6, 2011 1:51 AM
Edited by: 891982 on Dec 6, 2011 1:58 AM
Similar Messages
-
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 appreciatedFurther 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/SQL Gateway
Not processed as PL/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/token
oauth2/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 -
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 PMyes 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 DanHi,
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 -
Can connect via ODBC but not via SQL Developer?
Hi, all.
My setup:
Windows XP Pro
JDK 1.6
SQL Developer 2.1.1.64.45
I'm attempting to connect to an Oracle DB using OS authentication and trying hand-entry of the host and SID; and also trying my TNS file. When I attempt to connect via SQL Developer, I get the following error:
"Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied."
When I attempt this same connection, however, using ODBC and Access, I can get right in and see the tables.
What can I try in order to get SQL Developer working correctly?
Thanks,
IVR AvengerI'm not really familiar with connections Using OS authentication, but if OCI+TNS based connections work you could try to activate OCI connections by selecting
Preferences -> Database -> Advanced -> Use OCI/Thick Driverand then use the TNS connection type when creating your connection.
It should work well even with the thin driver but i cannot help you in this case because i've never had to use this kind of authentication. -
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. -
Username password works in SQL Plus not in SQL Developer
I have SQL Dev 1.2.1. It works fine with some databases, but with two databases with logons managed by Oracle Enterprise User it does not work. I receive an Ora 01017 error invalid username password. The user name and password work fine from SQL Plus and from a third party tool. I have a local developer client environment installed, so am using TNS. SQL Developer was installed before the client environment. I was not trying to access this database before the client environment install. I was using the basic connection before the client install. Neither basic or TNS connection works for this particular database.
Any ideas?We have changed the password and it still does not work. There are no special characters in the password.
I am tempted to think the problem is the jdbc driver versions. The logon for Enterprise user controlled databases stopped working after I installed the thick client Oracle developer. I have tried to find the threads with information on disabling the thick client jdbc but have not found them. I also have tried to enter a URL for the thin client without success. One of our DBAs is saying that the 11g clients are broken and he is in communication with Oracle about it. He says 10g works but 11g does not.
Any further help would be appreciated.
Gerry -
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
ChanThe 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. -
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:
user651051note: 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 PMHi 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 -
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). -
ORA-01427 in C# but not in SQL Developer
Hello everyone!
I have a query that works perfectly when executed from SQL Developer. However, executing the same query from C# gives error ORA-01427.
I am using Oracle.DataAccess.dll version 2.111.6.20, which cannot be changed, because the software is distributed and all users would have to install the new driver.
-- part 1
with
mat_stats
as
(select
t1.nr,
t1.ver,
t4.stat,
count( distinct t4.kom_id) as cnt
from
table1 t1,
table2 t2,
table3 t3,
table4 t4
where
t3.spec_spec_id = t2.spec_id
and t1.man_id = t2.man_man_id
and t4.kom_id = t3.kom_kom_id
group by t1.nr, t1.ver, t4.stat
order by t1.nr, t1.ver, t4.stat )
-- part 2
select distinct
nr,
ver,
-- part 2a
(select cnt from mat_stats xres
where xres.nr=nr
and xres.ver=ver
and stat='OK') as ok_cnt,
-- part 2b
(select cnt from mat_stats xres
where xres.nr=nr
and xres.ver=ver
and stat='TOL') as tol_cnt
from mat_stats
The output from part 1 is
"nr" "ver" "stat" "cnt"
1 5 "NOK" 4
1 5 "TOL" 1
And the output of part2 is (SQL Developer)
"nr" "ver" "ok_cnt" "tol_cnt
1 5 "" 1
What am I doing wrong ? Or is this a known bug ?
Cheers,
Chrisnow if the sum is changing the value then I have to ask: are these hitting the same data sources?
let's change the query around a bit and see if you get the same result
try this query
with
mat_stats
as
SELECT 1 NR ,
5 VER ,
'NOK' STAT ,
4 CNT
FROM DUAL
UNION
SELECT 1 NR ,
5 VER ,
'TOL' STAT ,
1 CNT
FROM DUAL
-- part 2
select distinct
nr,
VER,
SUM(CASE STAT WHEN 'OK' THEN CNT ELSE 0 END) OVER() OK_CNT,
SUM(CASE STAT WHEN 'TOL' THEN CNT ELSE 0 END) OVER() tol_cnt
FROM MAT_STATS ;
NR VER OK_CNT TOL_CNT
1 5 0 1 note I just "faked" your data based on your initial results, so you ought to be able to be able to change the with clause back to yours.
Run a full select in C# and look over the result set (fill a datatable and do a row.count then compare to a full select in Developer and see if the row counts are the same. -
Notes on Sql Developer - Importing - XLS
This isn't really a question, but I thought I should get the record of my tribulations posted so someone else won't have to work as hard as I did.
Please note when using import in sql dev - first, the file MUST be a xls formated BINARY file. I received a file with the extension xls, but it was actually a tab delimited csv, and the only message import gave me was : 'an error has occurred' , and then a stack trace with :
java.io.IOException: Invalid header signature; read 664572811392150337, expected -2226271756974174256
at org.apache.poi.poifs.storage.HeaderBlockReader
A ascii csv would cause this since it doesn't have the binary header. Incidentally, poi is a java (apache) library for reading microsoft file formats.You can try changing the column in the excel to general datatype before you attempt to load using sql developer.
alternate way...
You can save the excel file as .csv file. Once saved you should be able to use the sql*loader to load the data.
the sqlldr command for online
sqlldr userid control=test.ctl log=test.log bad=test.bad data=test.csv discard=test.txt
the test.ctl should be as follows
load data
infile 'test.csv'
into table constraint_chk
fields terminated by ','
(column1 char(10),
column2 date,
column3 number) ;
please let me know, if you need more info... -
Seeing decimal values in TOAD, but not in SQL Developer
I'm writing on behalf of a co-worker. He's using SQL Developer to look at some records in a database, but in one column he sees zeroes instead of the correct decimal values (the values are between 0 and 1).
However, the developer he's working with is using TOAD and sees the correct decimal values in the column.
Any idea as to how to get the decimal values to appear correctly within SQL Developer?The database version is 10g, the version supported by TOAD is 9.
Hi ,
1/I have not seen this reported please give a create
table statement and some test data to insert to
reproduce the problem.. Please give versions of
SQLDeveloper and the Oracle database - out current
production release of SQLDeveloper is 1.5.1(.54.40)
2.If you can convert the number to a string at the
database side say with TO_CHAR you should see the
string representation of the number in SQLDeveloper.
This would work if you are using a select via the
worksheet or a view on the table with the number if
you want to see it in a views data tab.
-Turloch
Maybe you are looking for
-
How do I get more hard drive space for my Macbook Pro?
I am losing hard drive space and I don't know why? Is something writing or copying on my Macbook Pro? Thank you...
-
How to make every coloum in a table/report searchable in an application???
I used the wirzed to make some applications based on some of my tables in the DB, but I when I typed a specific record in the search textbox, some them I can search, but some of them, they showed" data cannot be found", I hope every coloum in my tabl
-
Satellite Z830-10M speakers turn off when lid is closed
Hi, I am running a Z830-10M with an external monitor. I want to close the laptop lid but use the internal speakers, but when I close the lid, the speakers stop sounding! How do I fix this? Thanks.
-
How do I turn off "MobileMe has been discontinued" warning off. I did not keep photo under gallery so there is no need to migrate. The warning keep on showing up after initial round.
-
Error updating FB 4.5 PHP
Hi, all, I think this post belongs here and not on Zend; I'm sure you'll let me know if that's not the case. I get a similar error to what I've seen posted here, but in this case, everything seems to point to Adobe (the others pointed to Eclipse): Ca