PL/SQL in Sql Developer 4 script, works not sqlplus command line.
Hello guys, Xev here.
I hope I meet new people there into that in this space. I hope this is the appropriate space to ask this, I see that others have asked about sqlplus and they where permitted to post...
I have a pl/sql script that runs in sql developer 4, but the exact same script will not run in the sqlplus command line?
When I run the script, it gives me this, but as you can see with this script that works fine with sql developer, he is not running sqlplus command line.
ERROR at line 3:
ORA-06550: line 3, column 28:
PLS-00201: identifier 'DYNAMIC_COUNTS' must be declared.
ORA-06550: line 3, column 4:
PL/SQL: Ignored Element
ORA-06550: line 39, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 39, column 1:
PL/SQL: Statement ignored
ORA-06550: line 41, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 41, column 1:
PL/SQL: Statement ignored
ORA-06550: line 43, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 43, column 1:
PL/SQL: Statement ignored
ORA-06550: line 45, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 45, column 1:
PL/SQL: Statement ignored
ORA-06550: line 82, column 15:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 82, column 3:
PL/SQL: SQL statement ignored
Here is the script I use... You define a type of thing in the sqlplus command line?
Set serveroutput size unlimited
run the DBMS_OUTPUT. ACTIVATE (buffer_size = > NULL);
DECLARE
TYPE nt_tab IS TABLE OF dynamic_counts % ROWTYPE;
v_nttab nt_tab: = nt_tab();
FND_LOOK INTEGER.
v_incr NUMBER: = 0;
------------------------------------------------------------------------------------------------------------------------
BEGIN
FOR t IN (SELECT master, table_name, column_name
From all_tab_columns
Owner WHERE = UPPER ('& SCHEMA_NAME'))
------------------------------------------------------------------------------------------------------------------------
LOOP
BEGIN
EXECUTE IMMEDIATE ' with an ACE (select case when REGEXP_LIKE (' | t.column_name |))
-This search 1 letter and 12 figures-
', "^ ([[: alpha:]] |) [[: alpha:]] ({3}) [0-9] {12} $")
then "match"
another "no matches found" end up as output of ' | t.Owner | '.' || t.table_name | ')
Select count (*) in a where a.output = "Match Found" clause '
IN FND_LOOK;
------------------------------------------------------------------------------------------------------------------------
IF FND_LOOK > 0 THEN
v_incr: = v_incr + 1;
v_nttab. EXTEND;
v_nttab (v_incr) .t_owner: = t.owner;
v_nttab (v_incr) .t_table_name: = t.table_name;
v_nttab (v_incr) .t_column_name: = t.column_name;
v_nttab (v_incr) .fnd_govids: = FND_LOOK;
END IF;
------------------------------------------------------------------------------------------------------------------------
/ * This is for DBMS output, thus we have 2 different ways, one can see the results in the table dynamic_counts
and in the dbms_output
*/
IF FND_LOOK > 0 THEN
Dbms_output.put_line (t.owner |) '.' || t.table_name | ' ' || t.column_name | ' ' || FND_LOOK);
END IF;
------------------------------------------------------------------------------------------------------------------------
/ * Exception Handeling * /.
EXCEPTION
WHILE OTHERS
THEN
Dbms_output.put_line)
"Generic error".
|| t.column_name
|| "from".
|| t.Owner
|| '.'
|| t.table_name);
END;
END LOOP;
------------------------------------------------------------------------------------------------------------------------
FORALL i IN 1.v_nttab. COUNTY
INSERT INTO dynamic_counts (t_owner,
t_table_name,
t_column_name,
fnd_govids)
VALUES (v_nttab (i) .t_owner,
v_nttab (i) .t_table_name,
v_nttab (i) .t_column_name,
v_nttab (i) .fnd_govids);
COMMIT;
END;
/
Are you sure that you are connected to the database to the same user with both clients?
Tags: Database
Similar Questions
-
VBS script does not have command line parameters
Suddenly the VBS scripts that I use for several years is no longer work correctly on Windows 7. By "suddenly" I mean they worked Wednesday and do not work on Friday, two days later. There were / are two incidents:
First of all, the program default for the extension VBS WScript to CScript changed. CScript would scripts pretty well, except that my scripts are designed to run in debug mode under CScript, with many calls MsgBox, and I need them to run unattended.
So I re-associated .vbs WScript. Now the question is that WScript.Arguments.Count always returns 0 even when the script is invoked with command-line parameters. I checked with the command FTYPE that Windows is configured to pass arguments to WScript:
C:\>Assoc .vbs
.vbs = VBSFileC:\>ftype VBSFile
VBSFile="%SystemRoot%\System32\WScript.exe" "%1" % *.It's as if a Windows Update has suddenly dropped support for the %
If anyone else has noticed this? I can't go to CScript - I wrote dozens of scripts that I designed to behave differently under CScript or WScript.
OS = Win 7 Pro 64-bit SP1
In the meantime, I'm going to see events in the event viewer to see if this box received updates, MS or otherwise.
Thank you for responding. The content of the registry that you have provided is almost identical to one that I exported from a work computer. The only difference was in the placement of the @= line "VBScript Script file", so I tried to import them both. No one changed the behavior.
Fortunately, this isn't a problem only when I need to type command-line parameters. So I also tape "WScript" before the name of the script before you press Enter.
I don't think I'll do more to solve problems, but I'll keep trying all the answers in this thread that look promising.
Hello
Check this key?HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.vbs
You can export and send the content here. The value under "UserChoice" is most likely the culprit. And remove "UserChoice" key should straighten this issue.
-
Oracle Sql developer 2.1 does not work
Hello
Oracle Sql developer 2.1 does not work on my machine (Windows server 2003 pack 2 service) but works on xp and vista. On the other hand oracle datamodeller works very well.
can someone help me?
Thank youWho must have worked also. Do you all not basic ASCII characters in the path?
K.
-
Your advice was to use this command, but it does not seem to work, I get "error 87" entered it exactly as you suggested, but with no luck?
Hello DanielFenn,
As suggested above, for that matter I would say this as a new question on the link below. Please let us know if you get the resolution and the steps you took.
Microsoft TechNet forums:
http://social.technet.Microsoft.com/forums/en-us/ieitprocurrentver/threads
-
Path of J2SE for SQL Developer
I downloaded and installed SQL Developer 3.0 (JDK not included) for Linux under the guidance of the Oracle download page. The page advises that JDK 1.6.0_11 or higher must be installed.
Java $-version responds:
Java version "1.6.0_20.
OpenJDK (IcedTea6 1.9.9) runtime environment (fedora - 54.1.9.9.fc14 - x86_64)
OpenJDK 64-bit Server VM (build 19, 0 - b09, mixed mode)
I already suitable JDK installed? And if so, how do I determine the full path?
When I run the script/opt/sqldeveloper/sqldeveloper/bin/sqldevqloper for the first time, it prompts to enter the full path of an installation of J2SE. Am I being asked for a path to my JDK installation? I don't know what you must specify the path, and the use of SQL Developer guide is silent on how to identify this path. Or what I need to install something else until I get SQL Developer to work?
My background is Oracle DBA, not Java, so I find all of these JDK/JRE/J2SE very confusing stuff. Can someone help with specific instructions on what I need to do to get this product to work?
TIA,
Jontype
which java
in a shell.
Which should show the full path.
I don't know if OpenJDK is supported. It may be better to download the JDK official Sun (oracle).
Published by: Jim Smith on August 6, 2011 14:25
-
Problem with SQL Developer to capture
Hi guys,.
I am facing a problem for the last 4 days with SQL Developer. I use to migrate sql database to oracle SQL Developer. It worked well before and I had migrated some tables as well. But all of a sudden a few days before I had a mistake, I was unable to capture the objects. While I am trying to capture the sql database or the tables the progress dialog box is displayed as usual, but he suddenly gets hit and the green light turns red which is in the upper left corner. Said at that time, the progress message that appears at the bottom of the box +' stored jdbc:jtds:sqlserver: / / < hostname >: < port > / < the database name > ' +. But if I use another oracle server, then I can capture objects.
Because of this error, I'm not able to go forward. I tried to solve this problem in many ways. But nothing helps! Please help me solve this problem, as it's an emergency.
Thanks in advance.
RAM.
Published by: Ram Dhilip on March 22, 2010 08:16
Published by: Ram Dhilip on March 22, 2010 08:16
Published by: Ram Dhilip on March 22, 2010 08:19
Published by: Ram Dhilip on March 22, 2010 08:34You can use the method of capture in offline mode:
Click on tools-> Migration-> third party database offline Capture-> Capture database creation scripts
Now select the output directory of these scripts and the source database. Also, make sure that you have selected the Batch mode. Once this is done, copy all scripts on a computer with an installed SQL Server client or perform the export on the SQL Server computer directly.
Run the script and you'll get 2 directories with a couple of DAT files created. ALL switch to SQL Developer machine and load them into the SQL Developer
Click on tools-> Migration-> third party database offline Capture-> Capture Script output load of database -
SQL Developer to crash at startup.
I made several attempts using different versions of SQL Developer and different versions of Java on the machine with Microsoft Windows 8.1 Build Enterprise (x 64) 9600.
sqldeveloper - 4.0.1.14.48 - no - jre.zip 235,385,812
sqldeveloper - 4.1.2.20.64 - no - jre.zip 329,066,864
sqldeveloper - 4.1.2.20.64 - x 64.zip 399,957,535
sqldeveloper64 - 3.0.04.34 - no - jre.zip 154,645,086
sqldeveloper64 - 3.2.20.09.87 - no - jre.zip 182,052,469
sqldeveloper - 4.1.3.20.78 - no - jre.zip 331,401,110
Example of process:
(1) files extracted to sqldeveloper - 4.1.2.20.64 - no - jre.zip
(2) run sqldeveloper
(3) window appears asking you to JDK home - click 'Browse '.
(4) access to the Java/jdk1.8.0_65 - click on "select a folder.
(5) confirm the path with "OK".
(6) beginning of the program - the start screen flashes on the screen, but for a short period of time (tenths of a second).
(7) nothing else is happening.
(8) for execution sqldeveloper again not questions about the JDK. All splash screen (once again just flash).
(9) in the Manager of tasks (details) I see for about a half second the process 'sqldeveloper64W.exe '.
I've tried combinations of different JDK and version of the SQL Developer - some versions display warning on the supported Java versions.
The latest version I managed to run (ignoring warning) 3.2.20.09 has been building hand - 09.87 using java jdk1.8.0_65.
No luck with all versions 4 +.
I also tried to collect debugging information as described in http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-debug-info-for-oracle-sql-developer/
First attempt was unsuccessful - screen displayed for the second half and then again in line with command prompt is displayed in the CMD window.
I tried several times and finally was fast enough to press ctr + pause/break in this short time.
I tried it with versions 4.1.2.20.64 and 4.1.3.20.78. The latest is here:
2016-01-14 15:01:18 Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.65-b01 mixed mode): "AWT-EventQueue-0" #15 prio=6 os_prio=0 tid=0x00000000160e7800 nid=0x66c runnabl e [0x0000000016d7e000] java.lang.Thread.State: RUNNABLE at com.sun.imageio.spi.FileImageInputStreamSpi.createInputStreamInstance (FileImageInputStreamSpi.java:55) at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357) at javax.imageio.ImageIO.read(ImageIO.java:1304) at oracle.ide.osgi.boot.SplashScreenImpl$ImagePanel.<init>(SplashScreenI mpl.java:273) at oracle.ide.osgi.boot.SplashScreenImpl.jbInit(SplashScreenImpl.java:18 7) at oracle.ide.osgi.boot.SplashScreenImpl.<init>(SplashScreenImpl.java:15 2) at oracle.ide.osgi.boot.api.SplashScreen$1.run(SplashScreen.java:62) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP rivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre ad.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) ^ at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) C at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) "AWT-Windows" #13 daemon prio=6 os_prio=0 tid=0x00000000160e6800 nid=0x26a8 runn able [0x0000000016c7f000] java.lang.Thread.State: RUNNABLE at sun.awt.windows.WToolkit.eventLoop(Native Method) at sun.awt.windows.WToolkit.run(WToolkit.java:306) at java.lang.Thread.run(Thread.java:745) "AWT-Shutdown" #12 prio=5 os_prio=0 tid=0x00000000160e4000 nid=0x278 in Object.w ait() [0x0000000016b7f000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000000efa047d0> (a java.lang.Object) at java.lang.Object.wait(Object.java:502) at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:295) - locked <0x00000000efa047d0> (a java.lang.Object) at java.lang.Thread.run(Thread.java:745) "Java2D Disposer" #11 daemon prio=10 os_prio=2 tid=0x00000000160e3000 nid=0x60 i n Object.wait() [0x0000000016a7f000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000000ef9ff4b0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) - locked <0x00000000ef9ff4b0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164) at sun.java2d.Disposer.run(Disposer.java:148) at java.lang.Thread.run(Thread.java:745) "Service Thread" #9 daemon prio=9 os_prio=0 tid=0x0000000015ac0800 nid=0x80c run nable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C1 CompilerThread2" #8 daemon prio=9 os_prio=2 tid=0x000000001414d800 nid=0x149 c waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread1" #7 daemon prio=9 os_prio=2 tid=0x000000001414b000 nid=0x1f9 4 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x0000000014146800 nid=0x254 0 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x0000000014144800 nid=0xde0 ru nnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x0000000014143000 nid=0x1130 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Finalizer" #3 daemon prio=8 os_prio=1 tid=0x000000000229b800 nid=0x13bc in Obje ct.wait() [0x00000000154af000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000000ef5870b8> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) - locked <0x00000000ef5870b8> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209) "Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x0000000014108800 nid=0xd8c in Object.wait() [0x00000000153af000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000000ef586af8> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:502) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157) - locked <0x00000000ef586af8> (a java.lang.ref.Reference$Lock) "main" #1 prio=5 os_prio=0 tid=0x00000000021a3800 nid=0x2274 in Object.wait() [0 x000000000013e000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000000efa09b08> (a java.awt.EventQueue$1AWTInvocationL ock) at java.lang.Object.wait(Object.java:502) at java.awt.EventQueue.invokeAndWait(EventQueue.java:1313) - locked <0x00000000efa09b08> (a java.awt.EventQueue$1AWTInvocationLock) at java.awt.EventQueue.invokeAndWait(EventQueue.java:1294) at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348) at oracle.ide.osgi.boot.SplashScreenImpl.SynchronizeWithEdt(SplashScreen Impl.java:539) at oracle.ide.osgi.boot.api.SplashScreen.createInstance(SplashScreen.jav a:66) - locked <0x00000000ef9b5698> (a java.lang.Object) at oracle.ide.osgi.boot.OracleIdeLauncher.showSplashScreen(OracleIdeLaun cher.java:821) at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:11 3) "VM Thread" os_prio=2 tid=0x0000000014107800 nid=0x24fc runnable "GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00000000021bb000 nid=0x201c runn able "GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00000000021bd800 nid=0xfb4 runna ble "GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00000000021bf000 nid=0x1f48 runn able "GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00000000021c0800 nid=0x1b4c runn able "VM Periodic Task Thread" os_prio=2 tid=0x0000000015af8800 nid=0x408 waiting on condition JNI global references: 341 Heap PSYoungGen total 38400K, used 6704K [0x00000000ef580000, 0x00000000f200000 0, 0x0000000100000000) eden space 33280K, 20% used [0x00000000ef580000,0x00000000efc0c0a0,0x00000000f 1600000) from space 5120K, 0% used [0x00000000f1b00000,0x00000000f1b00000,0x00000000f20 00000) to space 5120K, 0% used [0x00000000f1600000,0x00000000f1600000,0x00000000f1b 00000) ParOldGen total 87552K, used 0K [0x00000000ce000000, 0x00000000d3580000, 0x00000000ef580000) object space 87552K, 0% used [0x00000000ce000000,0x00000000ce000000,0x00000000 d3580000) Metaspace used 7621K, capacity 7854K, committed 7936K, reserved 1056768K class space used 879K, capacity 968K, committed 1024K, reserved 1048576K
Please let me know if all the config files or additional information would help
Concerning
Location of these files can cause problems? It does not prevent SQL Developer 3.2 work.
Apparently. Director of the company may shed some light on why this is true. In practice, you can try to force the SQL Developer user settings in a local folder that is writable, discutΘ in: problem starting sql developer 4.1.1.19.59
For convenience, here's an excerpt. Use your 4.1.3.20.78x64 installation. Choose a path to a local folder, even one on a flash drive. Should work.
Add something like this line to the file sqldeveloper.conf to your installation:
AddVMOption - Dide.user.dir =
-
Non-Oracle DB with SQL Developer
I wonder if any body knows if the SQL Developer "Requester" can work with databases non-Oracle? (using connection drivers we can connect to a database)
I have to work with Teradata now, but the Oracle tool was perfect for me, now I want to use this tool to make complex queries.
Any advise?
I remember well, version 3.0, SQL Developer under license from a third-party tool (see ActiveQueryBuilder.jar) to replace the old Query Builder. This tool offers support for several flavors of SQL on several RDBMS platforms. The problem was, our team began to hear about problems with the query designer on the Oracle RDBMS as well as issues with more complex Oracle SQL queries which does not correctly handle the third-party tool.
For various reasons, including limited control on bug fixing by the third party and emphasizing the support of third-party RDBMS Oracle migration, it was decided to take the position Query Builder provided as a tool for Oracle SQL non-expert programmers.
I do not exactly remember when support for Oracle NON-SQL got off, but you can start with the 3.2.2 version to see if that allows him to always...
SQL Developer downloads version 3.2.2
.. .and chain backwards (see the link at the bottom of the page) to a previous version if necessary.
Hope this helps,
Gary
SQL development team
-
Explain the Plan in SQL Developer vs SQLPlus
Hello world
I have a small question. Why a plan explain blocking in SQL Developer but return immediately in sqlplus?
For example, in SQL developer, I write my statement and use the F6 command to bring up the plan to explain it and just, it hangs and crashes. It seems he's trying to produce a plan to explain, but it worked for hours now.
When I log into SQL Plus, I do a
The whole process takes less than a minute to get the plan of the explain command.SQL> explain plan for <query>: SQL> select * from table(dbms_xplan.display);
Is there something fundamentally different running through SQL Developer?
Thank you!
-JoeJoe,
F6 in SQL Developer runs an AutoTrace, which is currently running the SQL and also shows schedules and terms of the explain command. If you only want the plan of the explain command, use F10.
Kind regards
Bob -
How can I use sqlldr on SQL Developer version 4.0.2.15 command.
Now I'm able to use this command via the command prompt, but my requirement is that use this command on SQL Developer.
SQL * Loader is an external standalone tool, not a SQL or PL/SQL command.
Ask how to run through SQL Developer, that's like asking the execution of MS Word through SQL Developer, i.e. it is not really meaningful.
SQL * Developer, to the best of my knowledge, incorporates some built in options for loading data or extraction of data to CSV files, so maybe you want to just use those?
-
I downloaded the Oracle SQL Developer 4.0.2 (4.0.2.15.21)... It comes with JDK... I can't find the files ututil.sh and ututi.bat in sqldeveloper/bin? Any ideas?...
Hey, Jeff Smith. Thanks for the reply.
It looks not like command line utility call unit tests was changed to 4.0.2 compared to 3.0.
Can you please give me some reference documents I can to understand how to run utilities UTUTIL 4.0.2 version. ? Jeff Smith Sqldev Pm-Oracle
-
Hello
I have mysql on a server and oracle on other sever (both under linux). I want to migrate data from mysql to oracle using sql Developer installed on another remote computer. What are the neccessities base that I have to keep in mind in this regard, or should I just use the installed with oracle sql developer.
I do not have the required display variables defined on the oracle server and also an older version of sqldeveloper is installed with oracle. I think installing the latest version of sql developer on windows platform and then want to access the database on linux machines.
Please notify.
Thanx11 g DBA wrote:
HelloI have mysql on a server and oracle on other sever (both under linux). I want to migrate data from mysql to oracle using sql Developer installed on another remote computer. What are the neccessities base that I have to keep in mind in this regard, or should I just use the installed with oracle sql developer.
I do not have the required display variables defined on the oracle server and also an older version of sqldeveloper is installed with oracle. I think installing the latest version of sql developer on windows platform and then want to access the database on linux machines.
Please notify.Thanx
Download the latest developer SQL on your PC. Enable your firewall rules accept connections from your PC to the database port (usually 1521 - Oracle, 3306 - MySQL).
Establish a connection with your data (assuming that the privileges are sorted) and start the migration.
Note: For MySQL, you will need to download third party connector (a quick Google and you'll find the download and installation instructions).You already have the URL for the migration.
-
SQL Developer Version 3.0.02 really slow to produce results
Hello
Hoping someone can point me in the right direction here as a SQL Developer on my machine is so slow, that it is virtually unusable (it was not as bad in previous versions but it is possible, that I also have a new JDK since). I open a connection to an Oracle database and the simple type:
Select a_column a_table where a_column = 1
and click on the green triangle (ctrl + enter). The green triangle and the icons of commit / rollback are going gray and I start counting the seconds rough. I arrive at 30 before the result is displayed and I can do anything and yet it says:
All of the lines read: seconds 1 to 0.002
In sqlplus the exact same query returns immediately. I added - J - Dsdev.insight = false to the command line (as it may slow down the Oracle SQL Developer) but this did not help. I'm running Linux Ubuntu 10.10 with
3353400 KB of memory according to cat/proc/meminfo and my ~/sqldeveloper/jdk file contains:
/usr/lib/JVM/Java-6-Sun-1.6.0.24
quality shows:
PID USER PR NOR VIRT RES SHR S % CPU % MEM TIME + COMMAND
8143 martin 20 0 947 m 462 m 28 m S 6:39.68 2 14.1 java
and this is the only java program I am running.
Any ideas?
Thank you
MartinYes, there were "dark ages" for the performance of the SQL Dev queries from 30EA1 and 30EA2 (3.0.02).
He said that re-encoding on SQL history was to blame for this.
Unfortunately, there is no satisfactory solution for these versions.
Try at least 30EA3 and better to have production 3.0 a.Kind regards
Buntoro
-
Call the SQL of a script problem
Hello
I have a script for example query.sh:
#! / bin/sh
sqlplus-s ${ORACLE_USER} < < HIC
set the position
NewPage set to none
SELECT 'ALTER TABLE' |' TEST_TABLE' | 'ADD PARTITION' |' P' | To_char (trunc (sysdate + 7), "IYYY"). » W'|| To_char (trunc (sysdate + 7), 'IW') | ' VALUES LESS (TO_DATE('''||) To_char (sysdate + 14, 'YYYYMMDD') | " ((', "YYYYMMDD")); "FROM DUAL;
output
HIC
This will actually give me: ALTER TABLE TEST_TABLE add PARTITION P2010W46 VALUES LESS THAN (TO_DATE('20101122','yyyymmdd'));
I'll do this output of the second script. for example create_part.sh
#! / bin/sh
SQL='/home/Bill/scripts/query.sh'
sqlplus ${ORACLE_USER} < < EOF
Set serveroutput size 1000000
set the position
$SQL
output
FO %
When I run the 2nd script I get:
SQL > SQL > SQL > SQL 2 > ALTER TABLE test_table add a SCORE from P2010W46 LESS THAN VALUES (TO_DATE ('20101122 ',' yyy))
*
ERROR on line 1:
ORA-01861: literal does not match the format string
I suspect that the output of the 1st script encapsulates a second line, and it defective runs correctly.
East of Oracle 9i
Please suggest a way to overcome this problem.
Thank you in advance.In the first script, add the VALUE LINESIZE 1000
-
RMAN script does not work as a cron job, but works when explicitly executed
Oracle 10 g 2 10.2.0.1, Oracle Enterprise Linux 4 U7.
I've added a task to crontab of the oracle user who looks like the following:
the tracks work as expected but the rman command never works the inside of cron, it always returns code 1, but if I call the script itself from the command line#ORACLE_HOME,ORACLE_SID and PATH are set in the user's profie TAG=`date|awk '{print $1"_"$2"_"$3}'| tr [:lower:] [:upper:]` echo "backup started on`date` "> /home/oracle/rman.log rman target / LOG='/home/oracle/rman_run.log' << EOF run{ sql 'aler system switch logfile'; backup full database tag='$TAG' include current controlfile; delete noprompt obsolete; } exit; EOF echo "rman finished, returned $? " >> /home/oracle/rman.log echo "Backup ended on `date` " >> /home/oracle/rman.log
It works smoothly and the backup is performed.
what I am doing wrong?what I am doing wrong?
no no no ORACLE_HOME and ORACLE_SID is defined in script
The script does not source in the script of environmental requirementsenv | Tri o /tmp/capture.env
above indicates how deficient the script environment cron is really
Maybe you are looking for
-
I use a mac pro 2x3GHz. I don't know what I did, but since a few days I was not able to play videos from web sites like youtube. Can you help me?
-
Hello I want to buy a HD for my T61 and seen this HD: http://www.Newegg.com/product/product.aspx?item=N82E16822136280 is someone can you please tell me if this HD is compatible with my T61? This is my first time trying to install a new HD on my lapto
-
I have thousands of "IMG_0 *".jpt files in several directories. I just finished sorting them in a new directory structure. Now I need a way to "Rename" in their new records with the new numbers of ' IMG_0 * ', so that they fall in order depending on
-
Printer does not work with Windows Vista
My HP Deskjet2540 all in one printer will print with windows vista. Ive tried printing from excel, works and all I get is a blank sheet. Sometimes I get some very weak marks. I have a lot of ink, I uninstalled and reinstalled only to get the same res
-
Inkjet 1510: draws jet of ink 1510 all of a sudden half or faded to lines
Hey all. Ive had this printer HP inkjet 1510 for about 4 months now. It printed fine at first but all of a sudden it started printing lines half or semi fainted faded lines. It can print on 3 or 4 lines Okay then half superior of a line is not there.