DB Link not working from SQL Developer
Hi All,
I Have two databases say A and B. My DBA has created a DB link and when he logs in to sqlplus directly on the server and he can get the values from the other database. When I'm to get the values from the other database through SQL Developer from my client machine, it is giving me ORA-12154: TNS :could not resolve the connection identifier specified.
I can access both the databases without any problem and i have the entries for bath in my TNSNAMES.ORA file.
Thanks in advance.
SK
Check the dblink ddl. your tnsnames.ora should have exact same word as dblink_authentication as below.
create public dblink dblink_name connect to username identified by password dblink_authentication;
Similar Messages
-
File- Print not working from SQL Developer 1.2.1 Build MAIN-32.13
File->Print not working from SQL Developer 1.2.1 Build MAIN-32.13.
I downloaded sqldeveloper-1.2.1.3213.ZIP and extract to a local directory. From the extracted directory I ran ..\sqldeveloper\sqldeveloper.exe from Windows XP sp2. The program itself seems to run just fine but File-Print doesn't do anything. In Help-About, Java Platform is reported as 1.5.0_06 and Oracle IDE is 1.2.1.3213. I'm not sure where to look for what is causing the problem.
ThanksI hadn't tried CTRL-P before but I did today. On the first attempt, I saw a small jump in the memory usage for sqldeveloper.exe as reported in Windows Task Manager. Otherwise, there was no change. A second CTRL-P in the same session produced a further bump but subsequent attempts in the same session produced no further change in CPU or Memory Usage.
Using Task Manager to monitor this further, I tried File->Print again and saw that sqldeveloper would periodically climb to 1 or 2 percent CPU and consume a little more memory. After a minute or so, though, all activity stops again.
I do not get a print dialog box from SQLDeveloper using either CTRL-P or File->Print -
this photo illustrate how that (Substitution Variables) not working in "SQL Developer" Environment :-
http://www.imagehosting.com/show.php/1555180_ddddd.PNG.html
any solve for this problem ?????!!!!!!!!!!There is a dedicated forum for SQL Developer related questions
SQL Developer
I should admit however, that query you have provided ( with substitution variables) works like a charme in my environment (SQL Developer 1.1.0.23 build 23.64)
Best regards
Maxim -
Not a valid month, but works from sql developer
Hi,
so this sample works from SQL DEV. :
insert into aspa2_magaddendum (contractid, addendum_number, from_date, to_date) values(2, 0, '03.05.2012', '24.05.2012');
but not from code using ODP.NET
string date1 = "03.05.2012";
string date2 = "24.05.2012";
OracleConnection conn = new OracleConnection("Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=XE)));User Id=aspa2;Password=aspa2;");
conn.Open();
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
cmd.Parameters.Add("date1", date1);
cmd.Parameters.Add("date2", date2);
cmd.CommandText = "insert into aspa2_magaddendum (contractid, addendum_number, from_date, to_date) values(2, 0, :date1, :date2)";
cmd.ExecuteNonQuery();I get:
ORA-1843: not a valid month message from exception
Edited by: user2704811 on May 3, 2012 2:47 AMLooks like SQL DEV. session is a bit different from the one in code...
From SQL DEV i get:
select value from nls_session_parameters where parameter = 'NLS_DATE_FORMAT';
"DD.MM.RR"
and from the code I get:
cmd.CommandText = "select value from nls_session_parameters where parameter = 'NLS_DATE_FORMAT'";
string format = cmd.ExecuteScalar().ToString();
"DD-MON-RR" -
P/SQL Not Working in SQL Developer
The following P/SQL seems to work fine in SQL Plus but does not run in SQL Developer
insert /*+ append */ into upl_exclude_claims
(select /*+ ordered parallel(s,4) parallel(claim,4) */
/*+ use_hash(s,claim) no_index(claim, xbm_clm_recip) */
s.recip,
s.month_1st_day
from lrx.upl s,
mcd.fact claim;
Thanks911105 wrote:
The following P/SQL seems to work fine in SQL Plus but does not run in SQL Developer
insert /*+ append */ into upl_exclude_claims
(select /*+ ordered parallel(s,4) parallel(claim,4) */
/*+ use_hash(s,claim) no_index(claim, xbm_clm_recip) */
s.recip,
s.month_1st_day
from lrx.upl s,
mcd.fact claim;
ThanksWhat happens when you run it? Do you get an error or does nothing happen?
If you get an error post the message
Why didn't the first answer I did to this question post??? -
Asm link not working from kolkata
hi
http://www.oracle.com/technology/tech/linux/asmlib/install.html
this link is not working from india / kolkata.
what to do?javadev991 wrote:
Now working.
What?
Just cross check certain things
- The servlet you specified in Form Action is correct
- The Form Method must be POST not GET
- The query string param you are specifying in URL which is classifiedsearchtype, You are trying to get the same param in the servlet. It is case sensitive. -
Navigation Link not working from save search result
Hello Experts,
We have a requirement in our application which is created from scratch, I have implemenetd save search and its working fine, we have some navigation links in result. these links does not work from save search results moreover it works with normal search.
Can anybody help me out to achieve it.
Thanks in advance,
Madhu OmerHi Madhu,
If you want to trigger cross-component navigation to an overview page, then the following conditions should be satisfied:
1. Your last outbound plug calls method fire_outbound_plug( ).
2. The collection passed in fire_outbound_plug( ) contains two entities - a navigation descriptor as the first entity and a root object of the object you want to navigate to as the second entity.
In your case, is condition 2 satisfied? You can create a navigation descriptor by calling the following method passing its two mandatory importing parameters as indicated:
CL_CRM_UI_DESCRIPTOR_OBJ_SRV=>CREATE_UI_OBJECT_BASED(
EXPORTING
IV_UI_OBJECT_TYPE = * UI object type of object to which you want to navigate *
IV_UI_OBJECT_ACTION = 'B' "for Display
If you keep debugging the standard outbound plugs, then you will see that at some location, SAP will surely be inserting this navigation descriptor object in the collection as first object in the collection when calling fire_outbound_plug( ).
If you still can't trigger navigation, please mention the BOL objects you are working with, the component you have created and where you have used it.
Regards,
Shiromani -
Filter not working in SQL Developer 2.1
I have just upgraded to SQL Developer 2.1 and there seems to be a problem with filtering information in the Data tab. The filters I type in are simply ignored. Is there a setting somewhere that I am missing?
I am running XP Pro 2002 with SP3 installed.
The DB information is below:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
"CORE 10.2.0.3.0 Production"
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
It will occasionally work when I first log in but generally stops working after the first filtered retrieve. From then on the filter line on the toolbar is just ignored. Entering incorrect sql statements does not produce any errors either. Once it starts it is consistent across all tables.
The filter option on the header of each column still works, that is the only reason I have not gone back to V1.5.
Tony -
I recently downloaded SQL developer Version 2.1.1.64. However the code completion feature is not working automatically. I have checked the Automatically complete code in SQL worsheet checkbox under Tools->Preferences-> Code Editor-> Completion Insight.
Strangely, I get the code completion pop up window when I explicitly press the completion insight shortcut(Ctrl + Space).
Please help.
Thanks and Regards.Hi, I am getting the following logs :
Code completion time = 1015
*...?aux tok2?, parse time = 63
InsightableOracleDatabase.fetch() time = 360
Code completion time = 844
Finished parsing = 0
*...?aux tok2?, parse time = 62
InsightableOracleDatabase.fetch() time = 344
Code completion time = 812
Finished parsing = 0
*...?aux tok2?, parse time = 63
InsightableOracleDatabase.fetch() time = 359
Code completion time = 891
Finished parsing = 0
Thanks -
Code insight not working in sql developer 1.1.0.23
i just downloaded today. insight options all checked in preferences section. popup time set to less than a second. i get nothing to work in sql worksheet or while modifying a package body.
Hello,
You should see things from this side sometimes ;-) It's a small team, working hard, very focused! Yes, there is indeed a sense of urgency and we are testing a patch SQL Developer 1.1 at the moment. There is always the battle between wanting to get an updated release to you, the community, quickly, and delaying to ensure what you get is good.
Code insight, performance and many other issues have been addressed in this patch.
As for your other point, we want the tool to be lightweight, easy to install, easy to use with a clear user interface. Perhaps there'll be a new battle when adding features, but that's the goal.
Regards
Sue -
Desc not working in SQL Developer Version 1.1.3 Build 27.69
Hi All,
I am using Oracle SQL Developer Version 1.1.3 Build 27.69
select count(*) from abccount(*)
100
using desc / describe table name gives error
desc abcERROR:
ERROR: object abc does not exist
1 rows selected
I am able to perform select on the table but not desc/describe. I tried suffixing with schema name , still the same error persists.
Kindly provide a workaround
TnxWell 1.1.3 is quite old.
The best thing to do IMHO is to update to the latest version, it will also enable a load of new features and fixes.
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html -
Mailto: link not working from a particular website but works from others
the mailto: links on my website are not working in firefox v26.0 but other sites mailto links work perfectly well and open gmail has i would expect them to. i know the links on my site are working has i have tested them in chrome and work has expected so the issue is purely within firefox.
Can anyone give me any clueshi
This is where things are upto:
Tried everything that has been suggested so far without success,
I therefore unistalled firefox and rebooted computer and reinstalled FF and retested the links from the top level frameset then clicking the Contact Us link in the left frame.
The mailto: links when clicked on now open a newly composed message by firstly initiating a new tab within chrome its self (mailto: set to use google chrome within Options-> Options->Applications). If I set this to be Use Gmail then the problem i was having returns.
Does anyone have any suggestions of why this is. -
Hi,
I've searched around and found that the backspace and arrow key problem has been a known issue on 1.x versions of SQL Developer. In that version the fix was to reload the keyboard Accellerator bindings in Tools->Preferences->Accellerators. However, the Accellerator dialog isn't available on 3.2.2 version. Is there any other way to fix it? I know on some Macs, the keys work fine.
Thanks,
RichardHi Richard,
The Accelerator feature was renamed. Rather than
Tools->Preferences->Accelerators -> Load Presettry instead
Tools->Preferences-> Shortcut Keys -> More Actions -> Load Keyboard SchemeHopefully reloading in 3.2.2 will have the same impact as in the 1.x releases for your issue.
Regards,
Gary
SQL Developer Team -
Acrobat 9 pdf links not working from InDesign CS3. What is wrong?
My links are working in my 40 page Indesign CS3 file using Mac. After I convert to a .pdf, some of the links are no longer going to the right location. They have either duplicated other links, or trying to take me incorrectly to my desktop or network. Can't figure out what is wrong.
Links meant to go to an outside website are supposed to be filled out in the following format : http://www.phillipmjones.net
in Acrobat should look something like : This is my personal website
In Acrobat go go create you link then click on action:
(I'm using my own personal website as an example)
If you choose something else such as open a file then that is what it does. -
DB link not working from Oracle to Sql server
Hi All,
DB:10.2.0.3.0 and 11.1.0.7
OS: linux 86x64
DB:11.1.0.7
OS: linux 86x64
We created a db link from Oracle 10.2.0.3.0 to sql server and rceived the error message as:
$ tnsping testdb
TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 09-FEB-2011 15:42:57
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp) (HOST=abcd) (PORT=1521)) (CONNECT_DATA = (SERVICE_NAME=testdb)) (HS = OK))
TNS-12541: TNS:no listener
What steps are we missing to connect to sql server?
Thanks for your time!
Regards,Hi,
We are trying to connec to sql server DB: CognosStaging
lsnrctl status
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 22-FEB-2011 18:19:06
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.3.0 - Production
Start Date 04-JAN-2010 19:11:37
Uptime 413 days 23 hr. 7 min. 29 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /orabin/oracle/product/10.2.0.3/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fcobidbfrm01)(PORT=1521)))
Services Summary...
Service "OBIDEV" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Service "OBIDEVXDB" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Service "OBIDEV_XPT" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Service "OBIHRDEV" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Service "OBIHRDEVXDB" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Service "OBIHRDEV_XPT" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$ env | sort
_=/bin/env
G_BROKEN_FILENAMES=1
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=fcobidbfrm01
INPUTRC=/etc/inputrc
KDEDIR=/usr
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/orabin/oracle/product/10.2.0.3/lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
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:
MAIL=/var/spool/mail/oracle
OLDPWD=/oradata/OBIDEV
OPATH=/orabin/oracle/product/10.2.0.3/bin:/orabin/oracle/product/10.2.0.3/OPatch/:./:
ORACLE_HOME=/orabin/oracle/product/10.2.0.3
ORACLE_SID=OBIDEV
PATH=/orabin/oracle/product/10.2.0.3/bin:/orabin/oracle/product/10.2.0.3/OPatch/:./:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
PWD=/home/oracle
SHELL=/bin/bash
SHLVL=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_CLIENT=::ffff:10.20.142.68 3901 22
SSH_CONNECTION=::ffff:10.20.142.68 3901 ::ffff:10.20.10.152 22
SSH_TTY=/dev/pts/3
TERM=xterm
USER=oracle
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$ id
uid=500(oracle) gid=503(oradba) groups=10(wheel),502(oinstall),503(oradba)
[oracle@fcobidbfrm01 ~]$ lsnrctl service
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 22-FEB-2011 18:21:14
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
Services Summary...
Service "OBIDEV" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:301781 refused:0 state:ready
LOCAL SERVER
Service "OBIDEVXDB" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:4 refused:0 current:0 max:972 state:ready
DISPATCHER <machine: fcobidbfrm01, pid: 25232>
(ADDRESS=(PROTOCOL=tcp)(HOST=fcobidbfrm01)(PORT=47228))
Service "OBIDEV_XPT" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:301781 refused:0 state:ready
LOCAL SERVER
Service "OBIHRDEV" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4286 refused:0 state:ready
LOCAL SERVER
Service "OBIHRDEVXDB" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:972 state:ready
DISPATCHER <machine: fcobidbfrm01, pid: 21212>
(ADDRESS=(PROTOCOL=tcp)(HOST=fcobidbfrm01.na.gilead.com)(PORT=57739))
Service "OBIHRDEV_XPT" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4286 refused:0 state:ready
LOCAL SERVER
The command completed successfully
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$ uname -a
Linux fcobidbfrm01 2.6.9-67.0.7.ELsmp #1 SMP Wed Feb 27 04:47:23 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[oracle@fcobidbfrm01 ~]$ cat $ORACLE_HOME/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /orabin/oracle/product/10.2.0.3/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
DBATST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = fcdbfrm02)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = DBATST)
TESTSBY=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = fcdbfrm02)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = TESTSBY)
ctmsdev =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = fcdb01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ctmsdev)
ERPINT1=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=fcterpdb01.na.gilead.com)(PORT=1566))
(CONNECT_DATA=
(SID=ERPINT1)
OBIDEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = fcobidbfrm01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = OBIDEV)
CognosStaging= (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)
(HOST=fcsql18)
(PORT=1521)
(CONNECT_DATA = (SERVICE_NAME=CognosStaging)
(HS = OK)
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.20.10.152 fcobidbfrm01.na.gilead.com fcobidbfrm01
Do we need to just add an entry to the listener.ora in Oracle DB to get the connection working? Is that all what is required?
or
I have found a metalink note: How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) [ID 562509.1]
Do we need to set it up in Oracle DB first?
Thanks,
Maybe you are looking for
-
Report using ref cursor or dynamic Sql
Hi, I never create a report using a ref cursor or a dynamic sql. Could any one help me to solve the below issue. I have 2 tables. 1. Student_Record 2. Student_csv_help Student_Record the main table where the data is stored. Student_csv_help will cont
-
AutoBLocking Bug on Ipod Touch
Hi, I have a big problem with my new ipod touch. If I set autoblock = 1 min, I have a big problem. In that case, after a minute it's blocking, then goes in stand by. When I press On/Off button, I can se the apple but is not "lighted" (sorry for my ba
-
Calling sqlplus in shell script
hi all, Can any one explain me why we use sqlplus -s command along with -s option in shell scripts only.
-
Downloading attachment file on my Nokia Lumia 1520 is not possible...can someone help me please...thank you.
-
Want to order sound card. Is anybody having any issues with WIN7 64bit on Pavilion Phenom II x6 using soundblaster X-FI?