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

Schema Browser - Shared DB Llink

$
0
0

In the schema browser, if I select a DB Link that is "shared", the grid on the right side shows that it is shared.  If I have the right hand view show all of the DB Links the "Shared" attribute is missing from the grid forcing me to select each DB Link one by one to see its properties.

Is there a way to show the "shared" attribute when viewing all of the DB Links?

Thanks,

David


RE: Script manager and send SQL query results to excel format

$
0
0

If you want to send script manager output to excel, then right click on one of the grids in the "Output" tab and choose "Export Dataset"

But you don't have to use script manager to do that.   It would be faster to either run your query in the Editor with F9, then right-click in the grid and choose "Export Dataset", or just set up your export from Automation Designer, or if you are exporting a whole table, then right-click the table from the Schema Browser and choose "Export Dataset".

-John

RE: Database Health Check - Additional Checks?

$
0
0

These are some great ideas. I entered into our internal system as TOR-2766 for review by our Product Management. 

Perhaps these should go into the Idea Pond or I'd love to hear others comment if these would be helpful to them. 

RE: Script manager and send SQL query results to excel format

$
0
0

Hey John,

Thanks for your reply... I just wanted to automate everything with the running of scripts and results sent directly to a file ( excel in this case which is viewed better )

When I choose an xls format for the file on script manager output options , the output does not fall into the cells and not nice

Any ideas ?

Johnny

RE: Script manager and send SQL query results to excel format

$
0
0

You can get Excel files out of Script Manager, but not automatically.   It really wasn't made for that.   Try this instead.

1) Go to Automation Designer in Toad

2) Create an "Export DataSet" action (click "Export Dataset" on the toolbar to select it, then click in the area below to create it).  Double-click it to set up query, export format, etc.  Click "Apply" and close it when you are done.

3) Repeat the last step to create as many "Export Dataset" actions as you need.

4) You can select them one at a time to run, or click on the 'App' on the left to run them all.

RE: Script manager and send SQL query results to excel format

$
0
0

Will try those steps and report back :)

thx

Script manager and send SQL query results to excel format

$
0
0

Hello,

I just started using Script manager in version 11 but will try v13. My question is that I have to format the query results in an excel delimited format.

Does anyone have any experience with formatting with script manager?

Thank you

Johnny

RE: Why does TOAD for Oracle (13) no longer show scripts for users?

$
0
0

It works for me.  Check the first toolbar button to check script options.   Go to the "Users" tab and if the box for "Grants on the user's objects to other users/roles" is checked, then uncheck it.    


Why does TOAD for Oracle (13) no longer show scripts for users?

$
0
0

Why will TOAD for Oracle (13) no longer generate scripts to re-create/clone users or show the script for a given user under the RHS SCRIPT tab?

RE: Database Health Check - Additional Checks?

Import workspace from earlier TOAD

$
0
0

Hi

I just installed Toad for Oracle 13.0. Is it possible to import my workspaces from 12.12.

The "Copy User settings..." doesn't work for workspaces

BR

An

RE: Toad 12.6: Schema Browser Data Grid sorting

$
0
0

Column header sorting is disabled if you manually add an 'order by' to the query.  Is that what's happening?

Toad 12.6: Schema Browser Data Grid sorting

$
0
0

I used to be able to sort by clicking on column Header,  Ascending or Descending, with a single click.

Has something changed?

Right-click sort does not provide Ascending and Descending options.

Please advise.

RE: Script manager and send SQL query results to excel format

$
0
0

I am not sure if i'm configuring the setup correctly but getting an ORA-00900 invalid sql statement error when running an SQL statement in the dataset properties screen,dataset,  export query and exporting to excel

i.e just a simple query and it works fine in toad directly. Does it need to be a specific format ?

column SESSION_KEY format a10
column INPUT_TYPE format a10
column status format a10
column START_TIME format a15
column END_TIME format a15
select SESSION_KEY, INPUT_TYPE, STATUS, to_char(START_TIME,'mm/dd/yy hh24:mi') start_time, to_char(END_TIME,'mm/dd/yy hh24:mi') end_time, elapsed_seconds/3600 hrs from V$RMAN_BACKUP_JOB_DETAILS
where input_type = 'DB FULL' and STATUS = 'COMPLETED' --and STATUS <> 'COMPLETED'
and start_time > sysdate - 1
order by start_time desc;

RE: Script manager and send SQL query results to excel format

$
0
0

Take out the "COLUMN" lines.    Your query starts with the word "SELECT".   Those lines that start with "COLUMN" are not part of your query, they are SQL*Plus commands.  Most of the time in Toad, you don't need or want them.   The only time they are helpful is when running as script (F5 in the Editor), or in SQL*Plus.


RE: Script manager and send SQL query results to excel format

$
0
0

I am getting the same error after removing those lines :(

select SESSION_KEY, INPUT_TYPE, STATUS, to_char(START_TIME,'mm/dd/yy hh24:mi') start_time, to_char(END_TIME,'mm/dd/yy hh24:mi') end_time, elapsed_seconds/3600 hrs from V$RMAN_BACKUP_JOB_DETAILS
where input_type = 'DB FULL' and STATUS = 'COMPLETED' --and STATUS <> 'COMPLETED'
and start_time > sysdate - 1
order by start_time desc;

RE: Script manager and send SQL query results to excel format

$
0
0

I just pasted your query into an Export Dataset action and it worked n Toad 13.   If you are still on Toad 11, you may need to remove the semicolon at the end.

Semicolons are also not really part of the query.   SQL*Plus just uses them to mark the end of the query.   They are helpful in the Editor where you might have multiple queries, but we always have to take the semicolon off in the background when we send the query to Oracle.   That might not have happened in Export Dataset in Toad 11.

If you are on Toad 13 and getting the error, please post a screen shot (or email it to me:   john.dorlon@quest.com).  

RE: Script manager and send SQL query results to excel format

$
0
0

I'm using toad 11 and will soon use 13. OK thanks it works now

My goal is to put several queries with some comments in the export dataset , is this possible in the same editor ?

So basically create a report from one or several databases using several queries and export them in a readable excel format 

RE: Script manager and send SQL query results to excel format

$
0
0

Export Dataset can only take one query at a time.

To get around that, make multiple Export Dataset actions - one for each query.   If you want them to all have the same properties (except the query), a fast way to do that is copy/paste the action in the automation desgner.

You can then run them all by right-click on the App (on the left side of the Automation Designer) and choosing "run".

I don't think this was in Toad 11, but in Toad 13, there is an option to add a new sheet in the Excel file instead of overwrite.

RE: Script manager and send SQL query results to excel format

$
0
0

OK will wait till 13 is installed and see what can be done as I really want to produce a periodic report within one worksheet.

your help is greatly appreciated !

Viewing all 4385 articles
Browse latest View live


Latest Images

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