SQL Developer Seems to have messed up SQL Plus & Crystal Connectivity
Hi all,
previously I have been able to connect to a DB via SQL Plus. Also, I have been able to report on it with Crystal Reports XI.
I'm not certain, but I believe this has occurred since installing SQL Developer?!?!? Since once I installed, no need to use SQL Plus anymore and just haven't needed Crystal for a while.
My TNSNames.ora in C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN seems fine (it worked before)
SQLNet.ora has the following in it......
#SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= ( TNSNAMES, EZCONNECT )
A TNSPing returns.....
C:\>TNSPING PVNGDEV1
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-SEP-2
008 17:28:21
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
C:\>
When I try and create a connection via Crystal I get....
Crystal Reports
Failed to open the connection.
Details: ORA-12154: TNS:could not resolve the connect identifier specified
[Database Vendor Code: 12154 ]
This is sending me absolutely crazy and have already spent 1/2 day trying to fix it.
Please - any ideas?
Regards
DC
SQL Developer 1.5.1
Oracle Client 10.2
Crystal Developer XI
PROBLEM SOLVED - WHAT A MYSTERY and a WASTE OF MY TIME.
APOLOGIES TO SQL Develoepr for being the prime suspect - I still love you!
TNSNAmes.ORA as follows works!!!!!!
pvngdev1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ********)(PORT = 1521))
(CONNECT_DATA =
(SID = pvngdev1)
However, the following does not
PVODB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PVODB)
PVOQA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SID = PVOQA)
# - Enterprise Reporting
ERSDEVDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SID = sasrpt)
(SERVER = DEDICATED)
# - PVNG
PVNGDEV1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PVNGDEV1)
PVNGQA1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PVNGQA1)
DESTDEV1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = DESTDEV1)
Why is this.
I guess I 'll build up TNSNAmes connection by connectuion and test and see how I get on.
Regards all
DC
Similar Messages
-
Which version of SQL*Plus can connect to Oracle 8i Database?
Which version of SQL*Plus can connect to Oracle 8i Database?
I would like to know which version of SQL*Plus can connect to Oracle 8i Database?
Where can I download it?
(I have tried SQL*Plus version 11 and the program said it does not support the connection to Oracle 8i Database)
Thank you very much!By the way, what's your 8i database release version
SQL> select * from v$version;
Any SQL*Plus of 8i can connect to 8i Database.
Only SQL*Plus of 9.0.1 can connect to 8.1.7 and 8.1.6 Database
Only SQL*Plus of 10.1.0/10.2.0 can connect to 8.1.7 Database
Absolutely NO SQL*Plus of 11g can connect 8i databases
Regards,
Sabdar Syed, -
SQL Plus cannot connect (computers connected via DSL router)
Hi!
I have two computers connected locally via DSL router. One's IP is 192.168.1.64 and the other's IP is 192.168.1.65.
I try to connect to 192.168.1.64 via SQL plus from 192.168.1.66 by issuing the following command: sqlplus system@"192.168.1.64/orcl.168.1.100" and receive this error: "ORA-12170: TNS: Connect timeout occurred." I thought it was Windows default firewall that caused this and therefore changed windows' firewall settings in 192.168.1.64 by adding port 1521 into windows' firewall list. Now I receive this error: "ORA-12541: TNS:no listener."
Edited by: totalnewby on Jun 12, 2010 10:53 AMtotalnewby wrote:
Hi!
I have two computers connected locally via DSL router. One's IP is 192.168.1.64 and the other's IP is 192.168.1.65.
I try to connect to 192.168.1.64 via SQL plus from 192.168.1.66 by issuing the following command: sqlplus system@"192.168.1.64/orcl.168.1.100" and receive this error: "ORA-12170: TNS: Connect timeout occurred." I thought it was Windows default firewall that caused this and therefore changed windows' firewall settings in 192.168.1.64 by adding port 1521 into windows' firewall list. Now I receive this error: "ORA-12541: TNS:no listener."
Edited by: totalnewby on Jun 12, 2010 10:53 AM=================================
Assume you have the following in your tnsnames.ora:
larry =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = curley)
Now, when you issue a connect, say like this:
$> sqlplus scott/tiger@larry
tns will look in your tnsnames.ora for an entry called 'larry'. Next, tns sends a request to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
Next, the request arrives at port 1521 on myhost. Hopefully, there is a listener on myhost configured to listen on port 1521, and that listener knows about SERVICE_NAME = curley. If so, you'll be connected.
A couple of important points.
First, the listener is a server side only process. It's entire purpose in life is the receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners. That would be like the telephone company building a separate switchboard for each customer.
Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
What can go wrong?
First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) you don't look for problems at the telephone switchboard.
Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"
===================================== -
Listener running but SQL*Plus not connecting
Hi -
I've just installed 8.0.5 on RedHat 5.1 but I seem to be having
connection problems.
After some fiddling I seem to have the listener running on 1521
quite happily but when I try to run svrmgrl or sqlplus I get the
error 'ORA-12571: TNS:packet writer failure'.
The excellent 'Oracle8 A Beginners Guide' says that this is a
Net8 error but as far as I can tell, Net8 is running on TCP/IP as
you might expect, but 'as far as I can tell' isn't very far at
all really. I'm just digging through the Administrators Guide
documentation but as far as I can see, everything's fine.
Any ideas?
Simon
nullThis is a known problem for Oracle on Linux. Try setting write
permissions for the unix domain sockets in
/var/tmp/.oracle/
Simon Greenwood (guest) wrote:
: Hi -
: I've just installed 8.0.5 on RedHat 5.1 but I seem to be having
: connection problems.
: After some fiddling I seem to have the listener running on 1521
: quite happily but when I try to run svrmgrl or sqlplus I get
the
: error 'ORA-12571: TNS:packet writer failure'.
: The excellent 'Oracle8 A Beginners Guide' says that this is a
: Net8 error but as far as I can tell, Net8 is running on TCP/IP
as
: you might expect, but 'as far as I can tell' isn't very far at
: all really. I'm just digging through the Administrators Guide
: documentation but as far as I can see, everything's fine.
: Any ideas?
: Simon
Get Technical!
http://technet.oracle.com
null -
if i knew which key iʲd pressed it would be easy, but i donʲt
iʲve checked view - character encodinɡ and its unicode utf eiɡht
the settinɡs in tools options content seem ok tooThnaks very much for that attention to detail. I didn't in the end need to do all of the above as I also tried the 'close the whole lot down and reboot the computer' route which (for reasons unbeknown to me I will confess) seems to have solved it. But I'll save that answer for my next moment of madness.
-
Panic - I seem to have messed up a my shared iPhoto library....
I truly hope someone can help me with my issue.
I was following instructions for rebuilding my iphoto library - it is shared between two users and so the library has been moved to the shared folder within the Users directory. I am not sure what happend to cause the mess but when I start iphoto it starts as though it is the first time using it - no pictures just a "to get started" sticky note.
I have started while holding down the option key and confirmed that the library that is being chosen is the one that is in the shared folder. Furthermore when I select the iphoto library that I want to open from within the finder it appears to be 15 gb which is the size I would have normally expected it to be.
Is there some way to fix this data so that I get my photo's back. I do have time machine and so I can go back to a time before I tried to rebuild, but I am really not sure how to do that so if that is the best path I would appreciate any direction to accomplish this.
I have other back ups but at present if I was to have to back to them it would be a year or more of very key photos lost.
Please help and thank you.
ScottAs I continue to try and figure this out I have noticed that even the library that I did not touch or try to update - (an older one that was not shared and that resided in my home directory under Pictures - the default location for iphoto libraries) will not open now. This library is a year or so old but normally would have over 1000 photos. It appears as an available library to open when I start iPhoto while holding down the option key but even after being selected iphoto opens completely empty.
It seems like there is something that is preventing iPhoto from reading these libraries but I am not sure how to correct this. I suspect when I try to restore from time machine I will encounter the same issue. Before I do anything else I am copying the data that was in the Photo Masters folder from within the iPhoto package to an external HD. They are all JPGs and appear to open properly inside Preview so once completed I will be dealing with trying to get iPhoto to work not the more critical issue of recovering 9 years of family photos.
Still will be very appreciative of any guidance on getting back to normal.
sg. -
Latest imac update seems to have messed up disk utility
I just performed (as I always do) the latest apple software update that just popped up on my screen. I did the upgrade (for itunes and quicktime) on both my 1.25 GHz G4 imac (system 10.3.9) and my 10.7 GHz G4 (system 10.3.9).
For both machines I ran disk utility within 15 minutes of the upgrade, having performed no other operations. In both cases, Disk utility failed, giving me the message: "disk utility has lost its connection with disk management tool and cannot continue. Please quit and launch disk utility."
Relaunch was not effective. I ran disk warrior on both computers and it did not help.
Any clues? Seems like the latest updates must have done something crazy to the software.
Thanks!OK, I tried running disk utility from the system disk as you suggested. It acted just the same way - froze about 1/3 of the way through. Gave the same error message, and the same scary message that if you stop running disk utility (which one must do since it will not run), then there is a risk of damaging the disk.
Thanks for the help. Any other suggestions? -
Latest imac software update seems to have messed up disk utility
I just performed (as I always do) the latest apple software update that just popped up on my screen. I did the upgrade (for itunes and quicktime) on both my 1.25 GHz G4 imac (system 10.3.9) and my 10.7 GHz G4 (system 10.3.9).
For both machines I ran disk utility within 15 minutes of the upgrade, having performed no other operations. In both cases, Disk utility failed, giving me the message: "disk utility has lost its connection with disk management tool and cannot continue. Please quit and launch disk utility."
Relaunch was not effective. I ran disk warrior on both computers and it did not help.
Any clues? Seems like the latest updates must have done something crazy to the software.
Thanks!
ibook, imac Mac OS X (10.3.9)You've posted this question in a forum that is unrelated to your machine and software.
Please repost your question in the iMac G4 forum where more people will be able to give focused attention to your issue.
http://discussions.apple.com/forum.jspa?forumID=872
Good luck! -
XE: Cant connect to sql*plus, APEX seems to function
Hi! I am a beginner in oracle.
I installed oracle XE 10g, both the server and the client on mandriva linux, using the supplied RPM's. After that I ran /etc/init.d/xe/configure and accepted the default values. Then I performed the post-installation steps as mentioned in APEX insstallation guide (sourcing the shell scripts).
In the APEX interface I can see the database, its staistics and I created a user. But when I try to connect using sql*plus, the connection is refused:
SQL> conn sys as sysdba
Enter password:
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Judging from the output of commands below, there is something missing. Any ideas?
*> tnsping XE*
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 27-APR-2009 20:47:20
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Message 3511 not found; No message file for product=network, facility=TNSTNS-03505: Message 3505 not found; No message file for product=network, facility=TNS
*> lsnrctl status*
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 27-APR-2009 20:45:35
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Message 1053 not found; No message file for product=network, facility=TNSMessage 1020 not found; No message file for product=network, facility=TNSMessage 1021 not found; No message file for product=network, facility=TNSMessage 1022 not found; No message file for product=network, facility=TNSMessage 1023 not found; No message file for product=network, facility=TNSMessage 1026 not found; No message file for product=network, facility=TNSMessage 1034 not found; No message file for product=network, facility=TNSMessage 1024 not found; No message file for product=network, facility=TNSMessage 1025 not found; No message file for product=network, facility=TNSMessage 1040 not found; No message file for product=network, facility=TNSMessage 1422 not found; No message file for product=network, facility=TNSMessage 1033 not found; No message file for product=network, facility=TNSMessage 1028 not found; No message file for product=network, facility=TNSMessage 1415 not found; No message file for product=network, facility=TNS Message 1050 not found; No message file for product=network, facility=TNS
Message 1050 not found; No message file for product=network, facility=TNS
Message 1050 not found; No message file for product=network, facility=TNS
Message 1029 not found; No message file for product=network, facility=TNSMessage 1411 not found; No message file for product=network, facility=TNS
Message 1408 not found; No message file for product=network, facility=TNS
Message 1411 not found; No message file for product=network, facility=TNS
Message 1408 not found; No message file for product=network, facility=TNS
Message 1411 not found; No message file for product=network, facility=TNS
Message 1408 not found; No message file for product=network, facility=TNS
Message 1411 not found; No message file for product=network, facility=TNS
Message 1408 not found; No message file for product=network, facility=TNS
Message 1052 not found; No message file for product=network, facility=TNSThe messages tell me that you do not have the ORACLE_HOME variable set correctly. This has been discussed umpteen times, but since search is beyond the call of duty, I'll copy/paste one of my recent responses
In Linux and Unix Oracle REQUIRES that variables ORACLE_HOME and ORACLE_SID be set properly. And *nix REQUIRES that an executable be in the PATH or explicitly referenced. The easiest way of setting those consistently and correctly is to source the oraenv routine which is placed in /usr/local/bin by the installer. To use that, and assuming you are using Linux,
1) Find out the ORACLE_SID for your reference
tail /etc/oratab
and note the last line. The first field will be the SID.
2) Source oraenv
. oraenv
[ oracle ]?: enter the SID here
and if you want to put this into a script, enter something like
ORAENV_ASK=NO
ORACLE_SID={enter your SID ehere}
. oraenv
ORAENV_ASK=
Many people will suggest you set these variables in your profile. In the long term that is a bad idea (and DBAs should always be thinking in the long term) since most DBAs end up with a second database, ORACLE_HOME, upgrade or product and oraenv ensures that there will be no conflicts. -
Checking Module to Prevent SQL Plus usage on Database
I have a question regarding logon triggers checking against SYS_CONTEXT('USERENV', 'MODULE'). I created a logon trigger that looks for SYS_CONTEXT('USERENV', 'MODULE') = 'SQLPLUS.EXE'
and if it matches then it only allows specified users to log in to the database. This code works but I am confused as to why when I check SYS_CONTEXT('USERENV', 'MODULE') after I login in
shows SQL*Plus which clearly does not match my IF statement in my logon trigger.
Second issue. If I rename sqlplus.exe to jeff.exe and run it I am abled to log in to the database as a non DBA user. But the module still shows as SQL*Plus. Why is this?
Database Version: 11.2.0.2 64bit
OS: Windows Server 2003 R2
Client: 11.2.0.1
/*********************Create Trigger******************************/
CREATE OR REPLACE TRIGGER application_check_al
after logon ON database
DECLARE
l_username VARCHAR2(20);
l_module VARCHAR2(20);
BEGIN
l_username := SYS_CONTEXT('USERENV', 'SESSION_USER');
l_module := UPPER(SYS_CONTEXT('USERENV', 'MODULE'));
IF l_module LIKE 'SQLPLUS.EXE' AND
l_username NOT IN ('SYS', 'SYSTEM', 'DVOWNER', 'DVMGR') THEN
raise_application_error(-20001, 'SQLPLUS ACCESS RESTRICTED FOR NON DBA USERS');
END IF;
END application_check_al;
/*********************Run SQLPLUS******************************/
SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 7 12:22:23 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: jeffc@dev
Enter password:
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-20001: SQLPLUS ACCESS RESTRICTED FOR NON DBA USERS
ORA-06512: at line 10
Enter user-name: system@dev
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining, Oracle Database Vault
and Real Application Testing options
system@dev> select sys_context('USERENV','MODULE') from dual;
SYS_CONTEXT('USERENV','MODULE')
SQL*Plus
SQL>jeff81 wrote:
That doesn't make sense. Why am I able to log in when I renamed the exe? And why does the module still show as SQL*Plus?You are right - it does not make sense. The idea that Oracle might perhaps set module to SQLPLUS.EXE on executable start, and then re set from SQLPLUS.EXE to SQL*Plus after connect, or in glogin.sql, to ensure it is consistent across all operating system never crossed my mind.
You might want to refer to Support Note "SQL*Plus Session/Module is Not Showing in V$SESSION" [ID 1312340.1] to see whether anything in there helps. I'm pretty sure http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve040.htm#i2698573 doesn't help much, though.
I'd certainly be raising it with Support as a potential security challenge, to get that potential hole closed.
Edited by: Hans Forbrich on Mar 7, 2012 2:23 PM
I wonder whether Oracle put that capability in there - if an untained SQLPLUS.EXE, it tells you that it is SQLPLUS.EXE, but if renamed it tells you 'SQL*Plus'? Specuklation, but it is one thing I might do to subtly raise the flag. Best bet - ask Support.
Edited by: Hans Forbrich on Mar 7, 2012 2:29 PM -
Oracle8.1.7 - Can't log in to SQL*Plus
I have just installed the Course Technology kit for Oracle8i (Oracle8i Personal Edition and Oracle Forms and Reports 6i). I am running Windows 98.
I am able to start the database and have created the connect string in tnsnames.ora as instructed (I copy/pasted from the website so there shouldn't be any typo's), but when I try to start SQL*Plus and connect to the database I get
ERROR:
ORA-12547 TNS: lost contact
What do I do now?GoodDay,
Ok. You should try to restart the tnslnr.exe,lsnrctl.exe present in oracle/bin directory it should reinitiate the variables and after that one you should also change the contents of Listerner depending upon the type of protocal used such as TCP/IP,IPC etc and you should try Beq_LOCAL.world in Tnsnames.ora file that would help you resolve your problem.
With Best Wishes,
M.Ram Chaitanya -
Sql plus password typing problem
Hello there
I'm trying to access sql plus 11g on windows 7, i correctly write the username but when i try to type the password, nothing is typed at all, not letters nor asteresks!!
plz help meeeC:\Users\lord>sqlplus / as sysdba SELECT * V$VERSION;
SQL*Plus: Release 11.2.0.3.0 Production
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
Usage 1: sqlplus -H | -V
-H Displays the SQL*Plus version and the
usage help.
-V Displays the SQL*Plus version.
Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
<option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
-C <version> Sets the compatibility of affected commands to the
version specified by <version>. The version has
the form "x.y[.z]". For example, -C 10.2.0
-L Attempts to log on just once, instead of
reprompting on error.
-M "<options>" Sets automatic HTML markup of output. The options
have the form:
HTML ON [HEAD text] [BODY text] [TABLE text]
[ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] ON]
-R <level> Sets restricted mode to disable SQL*Plus commands
that interact with the file system. The level can
be 1, 2 or 3. The most restrictive is -R 3 which
disables all user commands interacting with the
file system.
-S Sets silent mode which suppresses the display of
the SQL*Plus banner, prompts, and echoing of
commands.
<logon> is: {<username>[<password>][@<connect_identifier>] | / }
[AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
Specifies the database account username, password and connect
identifier for the database connection. Without a connect
identifier, SQL*Plus connects to the default database.
The AS SYSDBA, AS SYSOPER and AS SYSASM options are database
administration privileges.
<connect_identifier> can be in the form of Net Service Name
or Easy Connect.
@[<net_service_name> | [/]Host[:Port]/<service_name>]
<net_service_name> is a simple name for a service that resolves
to a connect descriptor.
Example: Connect to database using Net Service Name and the
database net service name is ORCL.
sqlplus myusername/mypassword@ORCL
Host specifies the host name or IP address of the database
server computer.
Port specifies the listening port on the database server.
<service_name> specifies the service name of the database you
want to access.
Example: Connect to database using Easy Connect and the
Service name is ORCL.
sqlplus myusername/mypassword@Host/ORCL
The /NOLOG option starts SQL*Plus without connecting to a
database.
The EDITION specifies the value for Session Edition.
<start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
Runs the specified SQL*Plus script from a web server (URL) or the
local file system (filename.ext) with specified parameters that
will be assigned to substitution variables in the script.
When SQL*Plus starts, and after CONNECT commands, the site profile
(e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
(e.g. login.sql in the working directory) are run. The files may
contain SQL*Plus commands.
Refer to the SQL*Plus User's Guide and Reference for more information.
C:\Users\lord> -
SQL*Plus 'Copy' command and LONG datatypes
Hi. I'm using Oracle 9.2.0.5 and wanna copy LONG to LONG without using an Interface in VB or any other programming language.
Some of the fields (plain text) are greater than 32 Kb, and I tried the SQL*Plus 'Copy' command, without success.
(For compatibility reasons I can't convert LONG to CLOB, I need to copy LONG to LONG)
This is the example I'm working with:
Table Source_LONG (ID number, DATA long)
Table Destination_LONG (ID number, DATA long)
The SQL*Plus command: (connected from test_database@environment)
set long 100000
copy from test_database/test_database@environment insert destination_long (id,data)
I tried using both FROM and TO, but same results.
The fields are copied into destination_long, but they are
truncated at 32768 bytes, even with the LONG variable set to 100000. Any ideas ?
Thanks.I'm working with 2 similar tables with this structure:
SOURCE_LONG (ID number, DATA long)
DESTINATION_LONG (ID number, DATA long)
SOURCE_LONG contains two rows:
ID DATA
1 hello
3 ....text bigger than 32kb...
I tried your solution and it insert 2 rows, but only the ID is filled. The DATA is empty in both cases :-(
insert into destination_long(id,data) (select id,to_lob(data) from source_long); -
I guess I should not have messed with my file sharing pref...now I'm toast
I use my Airport to connect to my DSL.
I was "messing around" with my SHARING configuration (Apple...System Pref....Sharing...) and did something awful. I no longer have wireless connection to my Verizon router. I can hook up and get online (as I'm doing now) with Ethernet , but not Airport.
The Airport ICON is now GREY and has an ARROW (pointing UP) though it. Never seen that before.
And when I click on the icon I can't find my net work. The other Macs in the house work fine with airport.
Verizon tech support could not help.
How can get my Sharing preference back to normal (I was trying and guessing how to connect my other imacs around my home , without really knowing what I was doing. And I did something in there to screw this up).
Help please
JONSys Prefs Sharing should not have messed up your ability to connect wirelessly to your router.
Click on the on your menubar, click on "About This Mac" then click on "More Info..." Find "Airport Card" under "Network" and click on it. Does it say something like "No information found" or is your Airport card being recognized? If Airport is recognized as existing, I would next look in Sys Prefs Network, authenticate on the padlock in the lower lefthand corner, click on AIrport then click on Advanced, then check stuff in there, like on the Airport tab, is your home network listed there anymore? Try deleting it and readding it. Under TCP/IP, are you using DHCP (or whatever you use)? Or might it have gotten changed to a setting that is incompatible with your router's settings?
To get the Sharing Prefs "back to normal," just uncheck all of the checkboxes in Sharing and it will be back in its OEM state. -
Connecting Oracle using SQL Plus in command window through LDAP settings?
Hi
Just like to know if it is possible to connect Oracle using SQL Plus with connection type as LDAP.
Generally we connect to Oracle in cmd window as
username/password@DBServiceName
Similarly is it possible to connect Oracle using SQL plus cmd window using LDAP configuration settings.
Eg:-
If my LDAP server is oid:123:456
Context is: cn=OracleContext,dc=abcdefgh,dc=com
DBService is: xyz
Regards
jcSpecify the -L command line option to SQL*Plus, i.e.:
sqlplus -L username/password@db @blah.sql
(this will prevent the second prompt for username/password if the initial login is unsuccessful for any reason, like an invalid password).
Maybe you are looking for
-
I have a security question regarding icloud. My daugher has a iphone 5. She began dating someone who told her he forgot his icloud password and needed to update his iphone. She logged into his phone with her icloud. How can we insure he is not linke
-
IWeb - Moving iweb site from one mac to another mac.
Hi, I am using iWeb 08 and would like to move the iWeb site that was created on one mac to another mac to continue editing on the other mac. Any one now how to do this. Thanks tsofa
-
The Acrobat updater keeps on asking me for a password, but it does not accept my Apple ID or my Adobe password. What password do you folks want?
-
Improving the performance of Stored Procedure
need to improve the performance of this SP that is hitting two tables that holds about 24000 rowsUSE [trouble_database] GO SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[the_trouble_StoredProcedure] @troubleMedicatiotrouble
-
How to do Script in Acrobat reader pro * Monthly Payment*
Hallo, I hope somone can help me with script. I need an editable PDF file that have two text field. text field1 have price, text field2 shoud be calculate automaticly monthly payment, Example: if the price in filed1:100-300 $---------------shoud b