Cannot debug procedure in 11g database using SQL Developer
Hi,
We have recently migrated our database from 10.2.0.4 to 11.2.0.2. We were able to debug procedures using PL/SQL Developer earlier but after 11g migration we are not able to debug the same procedure in 11g database.
Is it that we require 11g PL/SQL developer with 11g client installed to debug?
11g has a new privilege required to debug stored procedures, DEBUG CONNECT SESSION.
Does your user have this priv?
No client required to debug, but if you ARE using a client via OCI THICK preference, be sure that the client version matches the server version.
Similar Messages
-
How to start or shut down database using sql developer in windows
Dear Sir/Madam,
how we start or shut down database using sql developer in windows
we are using oracle 11g release2, unix, java & oracle oracle weblogic administration
Thanks & Regards
Manish Kumar
Datbase Team
TCS Ltd.HI, Welcome to OTN form,
SHUTDOWN is not a SQL statement but a SQL*Plus command . You cannot use SHUTDOWN in PL/SQL.
Check following link:
http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve042.htm#i2699551
More Information please check OTN discussion: https://forums.oracle.com/thread/2349159
Thank you -
Cannot connect to database using SQL Developer
Ok. Here are the facts:
1) I can connect to the database using PL/SQL Developer.
2) I wanted to try SQL Developer and I am unable to connect to the same database with SQL Developer. I provide username and password and select "network alias" and click test and I get "Network adaptor could not be established"
3) TNS names.ora file resides on a mapped drive which clearly is accessible by PL/SQL developer but not by SQL developer.
What am i missing?
Thanks a lotIf you can select a network alias, then sqldeveloper has found your tnsnames and the problem lies elsewhere.
Is the network drive specified by a UNC? SQLDeveloper doesn't work well with unc names. -
Inserting and retrieving data from a al32UTF8 database USING SQL Developer
hi guys,
Before i post my questions , i think its better for me to provide you guys with my understandings first so that it easier to understand where/if i have gone wrong..
I am using Window XP and Oracle 10g
Non-unicode client - a client program that need to use the OS code page for mapping of the retrieved unicode data from the database as well as the support of displaying/inserting the characters from that code page to the database.
E.G sqlplusw.exe
Therefore, when using a non-unicode client
1) we have to set the OS code page (Control panel - regional and language setting - advance - language for non unicode program ) to the code page that contain the characters we are going to display/insert.
2) we will also have to set the NLS_LANG characterset to the character set of the code page we are going to insert so that when we do a insert (for e.g in thai ) , oracle will know, and auto conversion to UNICODE can take place. This is also true when we retrieve unicode data from the database so that conversion to the correct character set can take place.
INSERTING
THAI ---> conversion ----> UNICODE
RETRIEVING
THAI <---- conversion <---- UNICODE
I hope my basic understanding is correct up till this point.
Unicode client - a client program that supports the displaying/inserting of unicode characters without the need of setting the OS code page (Control panel - regional and language setting - advance - language for non unicode program )
E.G isqlplus http or SQL developer
However,
1) There is still a need to set the NLS_LANG so that correct conversion can take place between the client and the database.
For e.g, when retrieving if we set the NLS_LANG character set to ZHS16GBK (chinese) and the data store in unicode in database is E.G (THAI) , then the conversion would be wrong .
Since it is a unicode supported client, then the NLS_LANG character set should be set to UNICODE as well.
Here come my questions
*Important - please help if you are busy and have no other time to answer the rest of the questions
*Q1) If i were to use a unicode client, what should i set my NLS_LANG character set to ?
AMERICAN_AMERICA.UTF8 ?
*Q2) Where do i set the NLS_LANG character set information in SQL Developer, i know there is a metalink for setting NLS_LANG using isqlplus but i cant seems to google any result for SQL developer.
Q3) Is my basic understanding right until this point ? If not, please explain in a more generalised term as i am really not familiar with character sets, code page, unicode , glyphs and fonts..
Q4) If a unicode client does not need to refer to the OS code page (set in regional and language) , is there a UNICODE code page for the client to refer to , or is there any Window API available ?
Q5)
There is still a need to set the NLS_LANG so that correct conversion can take place between the client and the >>database.
For e.g, when retrieving if we set the NLS_LANG character set to ZHS16GBK (chinese) and the data store in >>unicode in database is E.G (THAI) , then the conversion would be wrong .am i right on this point for UNICODE supported client ?
Thanks for spending time to read my questions and i hope to hear advices from you guys soon.
Million thanks again for sharing.
Best Regards,
Noob but willing to learnThe requirement to always set NLS_LANG is not true for JDBC, which ignores NLS_LANG altogether. Java programs fetch text data into String variables, which use Unicode UTF-16 by design. JDBC sets character set conversion so that data is converted between UTF-16 and the database or national character set.
The requirement to set NLS_LANG is not generally true for OCI, either. The first call in an OCI problem can be OCIEnvNlsCreate(). This call has two parameters that allow the caller to define the character set to use for VARCHAR2/CHAR/LONG/CLOB/statement text and the character set to use for NVARCHAR2/NCHAR/NCLOB. Only if these character sets are specified as 0, NLS_LANG character set is used. Also, OCI programs can specify different character sets for each bind or define variable (i.e. input/output buffer). Note: OCI programs always use NLS_LANG to initialize the language and territory settings for the client program and the database session. Only the character set can be specified is OCIEnvNlsCreate().
OCIEnvNlsCreate() can specify the client character set as UTF-16 (in platform endianess). This is not possible with NLS_LANG.
Various interfaces building on OCI, such as Oracle ODBC and ODP .NET, explicitly initialize OCI with Unicode character set, and thus ignore the NLS_LANG character set as well.
Thnx,
Sergiusz -
Issue in connection with database using SQL Developer.
Hi,
I am facing a problem in connecting to a remote oracle database, below are the configuration setting which i am trying to use in sql developer to make the connection
TNS Configuration Details (SUDHIR)
SUDHIR=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=52.12.xxx.xxx)
(PORT=1526)
(CONNECT_DATA=
(SERVICE_NAME=sudhir)
User : system
Password : xxxxxxxxxxx
Database : sudhir
Connect as : Normal
I got the above credential details from Onsite team I need to connect this in my local sytem SQL Developer I am proving the connection as below
Hostname : 52.12.xxx.xxx
Port : 1526
Service Name : sudhir
Username : xxxxxxxxxxxxxx
password : xxxxxxxxxxxxx
I get following error when say test connection in sql developer.
"The Network Adapter could not establish the connection."
Please suggest me using the above details how to make the connection success. Please let me know.
Thanks
Sudhir
Edited by: BluShadow on 30-Mar-2012 11:56
data anonymised by moderator(o_0)
Hopefully for you, the machine is not reachable from internet !
Your giving online everything needed to log in as system ! that is quite dangerous. I guess the "Onsite team" would be pretty mad discovering that.
You should edit your previous post before too much people get to it.
Regarding your problem, I guess you can't get to the machine itself (maybe in a different network).
Can you try to ping it from your computer ?ping 51.17.130.121
This is a made-up IP, you'll have to replace with yours -
Unable to establish connection to oracle database using sql developer
hi guys,
i tried to connect to the oracle database using the sql developer, but it fails. it replies the following message:
Status: Failure -Test failed: Io exception: The Network Adapter could not establish the connection
what should i do? any helpPlease provide a little more information:
1) SQLDeveloper version.
2) Database Version.
3) Database location (same machine or on the network).
4) Connection method (basic,TNS).
5) Connection type (Thin,Thick/OCI).
Usually the first thing to check is if you have correctly entered the right information for your database connection, then if everything seems to be OK the database itself should be checked for potential problems. -
Generating hourly report from oracle database using sql developer .Help
I am working on SQL Developer 1.5.1, i need to prepare hourly record of the activity on the database, for that i have a sql query that gives me the report as per selected columns on hourly basis.I need to prepare 24 reports a day.
Each time i have to go to the query , change the date as per hours like form 22:06:2011 10:00:00 to 22:06:2011 11:00:00 and get the report and export it in excel.
I want to automate the script so that whenever i run the script , it just asks me the date and runs the script 24 times and fetch me the hourly report of whole day.
the query syntax is something like this
Select
from
where
And.......................
And...................
And......................
And req date between to-date( 22:06:2011 10:00:00) And to-date(22:06:2011 11:00:00)
Order by 7,1,2,3,4,5
Is there any possibility that i can automate the script to automatically change the hour itself and generate a report in excel 24 times?please share if you have any idea on this.
Looking forward for a response.This gives you data for the whole day and the first column tells you which hour data it is,
SELECT 'HOUR' || TO_CHAR ( req_date, 'HH24') AS hour_num,
col1,
col2,
col3
FROM table_name
WHERE TRUNC (req_date) = TO_DATE ( '22/06/2011', 'DD/MM/YYYY')G. -
How to create a database using SQL Developer
Hallo,
I am a user of OpenSUSE 11.4 and have Oracle database install in my system. I was reading this page regarding on creating a database. But I don't know how to launch DBCA in my system. May I know how can I launch DBCA in OpenSUSE 11.4?
THanks @!user4994079 wrote:
Hallo,
I am a user of OpenSUSE 11.4 and have Oracle database install in my system. I was reading this page regarding on creating a database. But I don't know how to launch DBCA in my system. May I know how can I launch DBCA in OpenSUSE 11.4?
THanks @!You'd launch it in exactly the manner in which your cited reference says:
--- begin quote ---
by entering the following on the UNIX command line:
dbca
--- end quote ---
Of course the documentation assumes you've completed the first five minutes of Computer Admin 101 and so realize you should include the directory that has the executabale file. In this case, your PATH should include $ORACLE_HOME/bin
So, what have you tried? What result did you get?
And why are you citing a reference for a old, unsupported version of Oracle?
And why the reference to SQL Developer in your subject line? This has nothing to do with SQL Developer.
Edited by: EdStevens on Apr 16, 2011 9:15 PM -
Exporting procedures using sql developer
Hi,
I successfully migrated a mysql database to the oracle database using sql developer.All the data excluding procedures were moved to oracle.
I dont know why but none of the procedures were moved to oracle.
Now, i want to move those procedures to oracle database.Can you guys provide any help.11g.DBA wrote:
Hi,
I successfully migrated a mysql database to the oracle database using sql developer.All the data excluding procedures were moved to oracle.
I dont know why but none of the procedures were moved to oracle.
Now, i want to move those procedures to oracle database.Can you guys provide any help.If you want to do something, anything "with SQL Developer", the question would be best asked in the [url https://forums.oracle.com/forums/forum.jspa?forumID=260]SQL Developer forum -
How to load jar file using SQL Developer
Dear All,
I need urgent help to load mytest.jar to the database using SQL Developer. I am able to load individual java classes to the database using SQL developers, but i could not load JAR files. Please help me any one know how to do this using SQL Developer.
Thanks and Regards
John pI don't think that's possible, so load it through the OS with the loadjava utility.
Have fun,
K. -
IBM DB2 to Oracle Database Migration Using SQL Developer
Hi,
We are doing migration of the whole database from IBM DB2 8.2 which is running in WINDOWS to Oracle 11g Database in LINUX.
As part of pre-requisites we have installed the Oracle SQL Developer 4.0.1 (4.0.1.14.48) in Linux Server with JDK 1.7. Also Established a connection with Oracle Database.
Questions:
1) How can we enable the Third Party Database Connectivity in SQL Developer?
I have copied the files db2jcc.jar and db2jcc_license_cu.jar from the IBM DB2 (Windows) to Oracle (Linux)
2) Will these JAR files are universal drivers? will these jar files will support in Linux platform?
3) I got a DB2 full privileged schema name "assistdba", Shall i create a new user with the same name "assistdba" in the Oracle Database & grant DBA Privillege? (This is for Repository Creation)
4) We have around 35GB of data in DB2, shall i proceed with ONLINE CAPTURE during the migration?
5) Do you have any approx. estimation of Time to migrate a 35 GB of data?
6) In-case of any issue during the migration activity, shall i get an support from Oracle Team (We have a Valid Support ID)?
7) What are all the necessary Test Cases to confirm the status of VALID Migration?
Request you to share the relevant metalink documents!!!
Kindly guide me in-order to go-ahead with the successful migration.
Thanks in Advance!!!
Nagu
[email protected]Hi Klaus,
Continued with the above posts - Now we are doing another database migration from IBM DB2 to Oracle, which is very less of data (Eg: 20 Tables & 22 Indexes).
As like previous database migration, we have done the pre-requirement steps.
DB Using SQL Developer
Created Migration Repository
Connected with the created User in SQL Developer
Captured the Source Database
Converted Captured Model to Oracle
Before Translation Phase we have clicked on the "Proceed Summary"
Captured Database Objects & Converted Database Objects has been created under PROJECT section.
Here while checking the status of captured & converted database objects, It's showing the below chart as sample:
OVERVIEW
PHASE TABLE DETAILS TABLE PCT
CAPTURE 20/20 100%
CONVERT 20/20 100%
COMPILE 0/20 0%
TARGET STATUS
DESC_OBJECT_NAME
SCHEMANAME
OBJECTNAME
STATUS
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:ARG_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H0INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H1INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H2INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H3INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H4INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H4INDEX02:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H5INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H7INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H7INDEX02:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:MAPIREP1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:MAPISWIFT1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:MAPITRAN1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:OBJ_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:OPR_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:PRD_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:S1TABLE01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:STMT_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:STM_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
INDEX
TRADEIN1
SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:X0IAS39:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
Missing
We have seen only "Missing" in the chart, also we couldn't have any option to trace it in Log file.
Only after the status is VALID, we can proceed with the Translation & Migration PHASE.
Kindly help us how to approach this issue now.
Thanks
Nagu -
ORA-06553: PLS-908 when calling 10g remote procedure from 11g database
Hi,
I have 2 instances: 11g (11.1.0.7) and 10g (10.2.0.4). When I try to call 10g (remote) procedure from 11g database, there is errors:
ORA-04052: error occurred when looking up remote object CUSTOMER.PRL_PK2_GENERAL@CUSTOMER_LINK
ORA-06541: PL/SQL: compilation error - compilation aborted
ORA-06553: PLS-908: The stored format ofCUSTOMER.PRL_PK2_GENERAL@CUSTOMER_LINK is not supported...
But, if I call the same procedure from another 10g instance, it's OK.
How can I fix the problem?
Thx,
qtphamAs you can see ,it seems like the workaround that was mentioned there is currently the only way to remove this ORA.
Workaround: Remove the function call(s) from the called subroutine's
package's spec. -
How to execute a system procedures in Sybase using SQL Developer ?
Hi everybody,
I'm using SQL Developer to remote connect to my Sybase Database. But I don't know how to run a system procedures in Sybase on SQL Developer program.
I I use these command in CLI mode in Solaris server, it's OK. But if I try on my computer, it'll show an error message.
Input :
sp_helpdb SecurityDB
Output :
Error starting at line 25 in command:
sp_helpdb SecurityDB
Error report:
Unknown Command
Please help me to do it ?
Many thanks,hello...
any input will welcomed... Thanks.. -
Can connect using sqlplus, cannot using SQL Developer
Hi
I cannot find out why I cannot connect using SQL developer, while sqlplus works fine with the same login information.
*1. TNS ping:*
C:\>TNSPING manila
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-GRU-2
010 13:28:38
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.171)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (370 msec)
*2. sqlplus*
SQL> CONNECT SULU_DEV/<pass>@MANILA
Connected.
*3. sqlplus - by IP*
SQL> CONNECT SULU_DEV/<pass>@10.0.0.171:1521/XE
Connected.
*4. SQL Developer*
Username: SULU_DEV
Connection type: TNS
Network alias: MANILA
Error: I/O Exception: Connection reset
*5. SQL Developer - by IP*
Username: SULU_DEV
Connection type: Basic
Hostname: 10.0.0.171
Port: 1521
SID: xe
Error: I/O Exception: Connection reset
*6. SQL Developer - without username*
Username: <blank>
Connection type: TNS
Network alias: MANILA
Error: ORA-01017: invalid username/password
It seems that I have connection to the server, but from some reason it is disconnected when I'm using SQL Developer, but works fine with sqlplus.
Any ideas on what it might be?
Thank you in advance,
Regards,
MarekThe connection export function it's available in 2.1.1.64, you need to right click on the main Connections node, and it will allow you to export all or part of the current connections, or import from a previously exported file.
As for the highlight statement feature it's available in SQLDeveloper; actually you do not even have to highlight the required statement, as long as you take the habit of ending every statement with a ";", in this case you only need to place the caret inside the statement and SQLDeveloper will automatically highlight it for you (if you want to manually highlight a statement you can still do so without problems).
Finally as a last try to solve your connection problem without having to call for network support you could try to check
Preferences -> Database -> Advanced -> Use OCI/Thick DriverThis will force SQLDeveloper to use your oracle client for connections instead of it's native JDBC based connections (even if you use TNS based connections you will still use JDBC unless you have this checked).
As for other graphical tools for Oracle there are many both free or for a price.
1) In the for price world Toad stands out, i heard of a free option too but I'm not sure of the limitations.
2) For free you can use DBVisualizer which is fairly good (never used it too much thou).
3) Finally there is SQuirreL which is both free and open source but it has fairly basic functionality compared to the two above.
Obviously there are many others, but IMHO few will provide you with the same functions of SQLDeveloper or Toad for Oracle databases -
How to delete database using sql
I have to delete some databases from oracle 8i. I tried it using the Database Configuration Assistant and I get stuck indefinately as the message always says connecting but nothing happens.
How can I delete databases using sql not thru the DCA?
Thanksfiles related to the database and follow these steps:
1.- shutdown the database
2.- Delete all files ( Control Files, .dbf, Redo's, Archive�s, parameter file, password file )
3.- Delete the entrance of this database from
listener.ora and from tnsnames.ora files.
and that's it.
Joel P�rez
Maybe you are looking for
-
Top_of_page is not working in ALV hierarchy?
Hi, I have written following code for top_of_page using event but which is not working...This report is developed for interactive report. Note: passed the it_events into ALV hierarchy functional module. FORM build_event_tab . CALL FUNCTION '
-
Can I use each image in a photogrid as a hyperlink?
Hi! I downloaded an Aperture folder onto an iWeb photos page and the photos are now in a photo grid. Can I use each individual photo as a hyperlink to another page? Ultimately what I want is to be able to click on each photo individually and have it
-
Photoshop CS6 Display is WAY to small.
I have a new laptop with windows 8 and it has a recommended screen resolution of 3200 x 1800 which I would like to keep. When I got into my Photoshop CS6 however everything is so small I can hardly see it. What setting do I need to change in Photosho
-
OpenJDK for PowerPC server development questions
Hello server experts, Can you advise me, what is the best development environment/language for the PowerPC 7448 to make the server? The server should be normal http/XML webservice. Hardware The server HW is pretty limited and old: CPU: PowerPC 7448,
-
Oracle query running very slow
Hi, We've MS-Access application which was pointing to UDB. Now we migrated it to point Oracle DB 9.2. After migration some of the query is running very slow. These queries used to take less than 30 seconds in UDB now taking more than 5 Minutes in Ora