Quantcast
Channel: Toad for Oracle Forum - Recent Threads
Viewing all 4385 articles
Browse latest View live

Keeping Number Data Types From Becoming Text Data Type When Exporting to MS Access

$
0
0

Got a new laptop and TOAD is now exporting double number formats as short text.
Old computer kept double number data type but new computer overwrites to new tables when exporting as Short Text format.
For example, our customer id numbers are 10 digit numeric (double, not long integer).  When exported to MS Access, the data type is Short Text.
Old computer was Windows 7 and Toad for Oracle 10.6.1.3.
New computer is Windows 10 and Toad for Oracle 12.10.0.30
I dread having to convert all my files impacted.  Is there a Toad Option to keep numbers as numbers when exporting?


RE: Access voilation at address errors

$
0
0
I also get Access violation at address errors same as David. Also, the errors occures on simple select queries.

Error text is - "Access violation at address 00000000049C71B5 in module 'Toad.exe'. Read of address 0000000000000070"

Best regards,
Dino

Access voilation at address errors

$
0
0

Hello All,

Tool details:

Toad for Oracle

Toad for oracle Xpert(64-bit),Add-Ons: DB Admin Module.

Version : 12.8.0.49

Issue:

Have been facing issue with total lately with export data/create script/create in another schema/import fields option.

after selecting all the options in the wizard and clicking "OK" it runs into "Access voilation at address.." error.

Previously these errors used to go away - after restarting Toad.

Most recent error : 

"Access violation at address 000000000482D230 in module 'Toad.exe'. Read of address 000000000000011D"

Has anyone else come across any such issue?

Thank you,

Akshata R

RE: Bug in Oracle to ANSI join conversion?

$
0
0

One of the other devs here (John Bowman) worked up an example similar to yours with the HR.EMPLOYEES table.   We can reproduce the problem and I see that the conversion produces a different result.   I guess I have something to learn about the ANSI syntax.  :-)

RE: Bug in Oracle to ANSI join conversion?

$
0
0

Hey Andy,

This should be fixed for the next 12.11 Beta and GA versions of Toad.  Toad is a pretty massive product and sometimes bugs like this can fall through the cracks.  It's the same with any piece of software.  After all, how many operating system updates does the average person go through in order to fix bugs that were missed when released?  We rely on, and very much appreciate when our users find things that don't look right and let us know about them so we can fix them.  It helps us give you the best product possible.

You mentioned you were on the Freeware version of Toad, so you may not have access to run the beta; however, you should see this fixed when the next GA version is released.  Thanks again for letting us know about this!

-John

RE: Bug in Oracle to ANSI join conversion?

$
0
0

Hi John, 

wow, congratulations to you and your team for solving it so quickly! Thank you very much for looking into it.

Toad is truly a great product, has saved me hundreds of hours of work and helped me immensely with my job, so that's why I was so surprised and upset when I came across this (and wrote the message in the heat of the moment!). Naturally all software products can have hidden bugs (mine has many more than Toad, believe me!), but the mark of a great dev team is how efficiently they can deal with them when they're found, so you're definitely up there!

I look forward to the new release. In the meanwhile, I'm using a script to flip the join condition when there's a (+) on the left of the equals sign before running the converter, and all is going well.

Best regards,

Andy

Bug in Oracle to ANSI join conversion?

$
0
0

Hi everybody, 

when using Toad to convert a query featuring outer joins written in the old Oracle notation into ANSI notation, I've run into a problem:

If I write it like this:

select AGENTS.AG_AGCLE, AGENTS.AG_NOM, S01_SERVICES.SE_CODE, S01_DEPART.DP_CODE, S01_DEPART.DP_NOM, CONGES.CG_CPANT, S01_PERSO.PE_TEMPSW, MEDWORK.MK_VILLE, MEDWORK.MK_DOCTORNAME
from S01_PERSO,S01_SERVICES,S01_DEPART,AGENTS,CONGES,MEDWORK
where SE_DPCLE=DP_DPCLE
and SE_SECLE=PE_SECLE
and PE_AGCLE=AG_AGCLE
and AG_AGCLE=CG_AGCLE(+)
and AG_MKCLE=MK_MKCLE(+)
and PE_PECLE=25;

Toad converts it to this, which is correct:

SELECT AG_AGCLE, AG_NOM, SE_CODE, DP_CODE, DP_NOM, CG_CPANT, PE_TEMPSW, MK_VILLE, MK_DOCTORNAME

FROM S01_PERSO

INNER JOIN AGENTS ON (PE_AGCLE = AG_AGCLE)
INNER JOIN S01_SERVICES ON (SE_SECLE = PE_SECLE)
INNER JOIN S01_DEPART ON (SE_DPCLE = DP_DPCLE)
LEFT OUTER JOIN CONGES ON (AG_AGCLE = CG_AGCLE)
LEFT OUTER JOIN MEDWORK ON (AG_MKCLE = MK_MKCLE)
WHERE PE_PECLE = 25;

Whereas if I write it like this, which is the same query (I just wrote one of the join conditions the other way round):

select AGENTS.AG_AGCLE, AGENTS.AG_NOM, S01_SERVICES.SE_CODE, S01_DEPART.DP_CODE, S01_DEPART.DP_NOM, CONGES.CG_CPANT, S01_PERSO.PE_TEMPSW, MEDWORK.MK_VILLE, MEDWORK.MK_DOCTORNAME
from S01_PERSO,S01_SERVICES,S01_DEPART,AGENTS,CONGES,MEDWORK
where SE_DPCLE=DP_DPCLE
and SE_SECLE=PE_SECLE
and PE_AGCLE=AG_AGCLE
and CG_AGCLE(+)=AG_AGCLE
and AG_MKCLE=MK_MKCLE(+)
and PE_PECLE=25;

Toad converts it to this, which is wrong!

SELECT AG_AGCLE, AG_NOM, SE_CODE, DP_CODE, DP_NOM, CG_CPANT, PE_TEMPSW, MK_VILLE, MK_DOCTORNAME
FROM S01_PERSO
INNER JOIN AGENTS ON (PE_AGCLE = AG_AGCLE)
INNER JOIN S01_SERVICES ON (SE_SECLE = PE_SECLE)
INNER JOIN S01_DEPART ON (SE_DPCLE = DP_DPCLE)
LEFT OUTER JOIN MEDWORK ON (AG_MKCLE = MK_MKCLE)
RIGHT OUTER JOIN CONGES ON (CG_AGCLE = AG_AGCLE)
WHERE PE_PECLE = 25;

I have searched online for this problem and found nothing, Has anybody else come across this?  Is this a bug, or am I missing something? If it is a bug, how come a product as mature as Toad can still have bugs this serious?

I'm using Toad for Oracle Freeware 12.10.0.30, 64 bit on Windows 7 64 bit.

Thanks in advance.

Andy

RE: Application Data Directory Lost

$
0
0

There's a file called SettingsLocations.ini that you can edit with notepad which should fix the problem.

For me, this file is located at in C:\Users\Admin\AppData\Roaming\Dell\Toad for Oracle. 

Find the entry in that file for 12.10 (there could be multiple Toad versions listed in there)

For me, it looks like this:

[TOAD 12.10]
AppData=C:\Users\Admin\AppData\Roaming\Dell\Toad for Oracle\12.10\
Path=C:\Work\Installed Toads\Toad for Oracle 12.10\
Version=12.10.0.30
Edition=Toad DBA Suite for Oracle - Exadata Edition

Then you can change the AppData path to whatever it needs to be.    Save and close.   Next time you start Toad, it will create the folder if needed and create the user files folder within.

That worked in a quick test for me, but if it doesn't work for you, then a reinstall should take care of it.


RE: Application Data Directory Lost

$
0
0
Thank you !!
 
John Rose
IT Specialist | Systems Administration | Oracle DBA
1920 Dayton Ave (Rm 3N703)
Ames, IA 50010
USDA-APHIS-VS
- National Centers for Animal Health (NCAH)
- National Veterinary Services Laboratories (APHIS/VS/STAS/NVSL)
- Center for Veterinary Biologics (APHIS/VS/STAS/CVB) 
- National Animal Disease Center (ARS/MWA/NADC) 
(Office) 515.337.6322
(Mobile) 515.450.9190
 

RE: Application Data Directory Lost

$
0
0

Like a Charm !!

Thank you again!!

Application Data Directory Lost

$
0
0

Apparently when I was last in Toad for Oracle, I  changed the location of this file (Application Data Directory) to a directory within which I do not have full read/write.. inadvertently.

Now Toad will not start, stating it cannot read this file.  Is there a key value for this setting within the registry?  I find TOAD under current_user > software > Dell, but the only keys listed here are for Edition, License, Package Product and Version... 

I searched for appdata without finding the location, and searched for the first portion of the directory location without finding any mention in the registry.

Can you tell me where within the registry it would be located ?

Or should I uninstall and re-install Toad for Oracle? Or is there an alternative solution?  Toad version 12.10.

The error message on starting toad reads:

"Toad cannot update its client files.  Please make sure you have full read and write access to Directory to which I changed the location...

    Details: Cannot copy file "SDFConverter.exe to Directory...."

Thank you for any help...

RE: Enable 'Toggle Compiling with debug'

$
0
0

I just got this granted DBMS_DEBUG to my user account & restarted Toad.  This did not enable the debugger menu.  Please help.

RE: Enable 'Toggle Compiling with debug'

$
0
0

You also need the DEBUG CONNECT SESSION system privilege.   You can see if you have it with this query:

select *
from session_privs
where privilege = 'DEBUG CONNECT SESSION'

The query will return a row if you have the privilege.  It will return nothing if you do not.

Enable 'Toggle Compiling with debug'

$
0
0

Hi All,

I am using TOAD 12.6. The database is installed locally. So I have access to both SYSTEM and the sample HR schema in Oracle.

     I have searched some posts about how to enable Debug in TOAD with no avail. I have already got DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE grants for the HR user in the schema. However, in the TOAD session, the Session > "Toggle Compiling with Debug is still greyed out for the HR session.

The 'Toggle Compiling with debug' option is enabled in the SYSTEM user, but greyed out in the HR user. Please advise, what else do I need to perform to make it work in HR schema.

TOAD 12.10.0.30. Formatting Options

$
0
0

Hello All,

I have a question about Formatting Options in TOAD 12.10.0.30.

Is the a way to put parameter declarations in columns. The only 3 options either line up IN with IN and OUT with OUT or compact everything to the left. Below is what I am interested in seeing if its possible.  

 IN OUT    

 IN          
 OUT       
 IN OUT

Current FmtPlus.opt

[Qp5FormatterOptions]
Version=296
RightMargin=120
AssignFavorWrapping=0
ConcatStyle=1
ConcatOperatorPos=2
Tagline=0
OutputTabs=4
IndentSize=4
InsertTabs=0
DmlColumnAliasAlignment=1
DmlTableRefAliasAlignment=1

Thanks

Dave


RE: TOAD Base Edition Trial

$
0
0

I don't see a base edition trial (maybe we don't have one?  Not sure).   But there are 4 different trial packages that you can get trials here:

https://www.quest.com/products/toad-for-oracle/software-downloads.aspx

The last one, Toad Data Point, is actually a different product than Toad for Oracle.   You could probably download that one in addition to one of the Toads above it, install them both, and see which one fits your needs best.

RE: TOAD Base Edition Trial

TOAD Base Edition Trial

$
0
0

Hi,

I been searching everywhere but cant find a trial version of Toad for Oracle Base Edition to download. We currently running SQL Developer and would like to test the Base Edition, we are not Oracle DBA's that needs all the fancy stuff TOAD offers but rather software developers that would like to execute queries and run SQL optimizations.

Thanks in advance

Deon

RE: Line Numbers for PL/SQL code

$
0
0

Hi Norm,

Last week, I reported success with your Normsearch package in my test sandbox environment. I found more occurrences of a search term versus the modified Tom Kyte procedure run as an Anonymous Block.

Today, I tried creating the same package in our lower "DEV" environment. It compiles fine, yet when I try to run it in this environment, I get an Invalid Relational Operator error:


I get this error with any search term, in this environment, for example 'ZA005' or 'H91B'. I have tried running with the Debug option, but the code is bombing out before any output is printed.

I tried looking up this error on the TechOnTheNet.com site:

     https://www.techonthenet.com/oracle/errors/ora00920.php

It includes "You tried to execute a SQL statement, but the WHERE clause contained an invalid relational operator."

Any idea why the package compiles fine in both environments (my test sandbox and DEV), but only runs okay in my test sandbox?  I note that I have two additional privileges in my test sandbox versus DEV. Could this be the cause of the error?

Sandbox Test EnvironmentDEV Environment with ORA00920 Error
PRIVILEGEPRIVILEGE
CREATE CLUSTERCREATE CLUSTER
CREATE DATABASE LINKCREATE DATABASE LINK
CREATE INDEXTYPECREATE INDEXTYPE
CREATE JOBCREATE MATERIALIZED VIEW
CREATE MATERIALIZED VIEWCREATE OPERATOR
CREATE OPERATORCREATE PROCEDURE
CREATE PROCEDURECREATE SEQUENCE
CREATE SEQUENCECREATE SESSION
CREATE SESSIONCREATE SYNONYM
CREATE SYNONYMCREATE TABLE
CREATE TABLECREATE TRIGGER
CREATE TRIGGERCREATE VIEW
CREATE TYPEDEBUG ANY PROCEDURE
CREATE VIEWDEBUG CONNECT SESSION
DEBUG ANY PROCEDURE
DEBUG CONNECT SESSION
SQL Statement
select * from session_privs order by privilege;

  

The more I look at this, I'm thinking I need the session priv. CREATE TYPE. It looks like the code is trying to do that at run-time, which I think explains why the code compiles, but then has a run-time issue:

   

CREATE OR REPLACE PACKAGE APDBMS_SOR.normSearch  as
    -- Pipelined functions need a table type to return results.
    type tSqlStatement is table of varchar2(1024);

Thank You,

Tom

RE: Line Numbers for PL/SQL code

$
0
0
Try running it with debug set to y and see what query is being generated. That might give a clue.

Cheers,
Norm. [ TeamT ]
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Viewing all 4385 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>