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

RE: Text highlighting in TOAD 12.12

$
0
0

You can change syntax decoration options on the Editor|Font and Styling page in Options.

Did you change your Editor default font color between 12.11 and 12.12 to make it lighter? The yellow block is controlled by the "Search Match" Global style. You can set it to match your window background color or increase the transparency to 100%. If you'd like to retain the feature, but have it work better with your default font color then either pick a new Search Match color or try moving the transparency up to something pretty high. 71% is the default value.

Thanks,

Michael


RE: License question version 11 vs 12

$
0
0

11.5 is 5+ years old and 12.10 is one year old. If your IT department wants you to be on the current Toad version that would be 12.12 released one week ago. I don't know what it means to purchase from your company app store, but if they route the PO through Quest or another vendor then you should be able to get 12.12. Perhaps they can credit your 12.10 purchase towards the current version?? You'll want to contact Quest Sales or the vendor from which it was purchased.

Michael

RE: License question version 11 vs 12

License question version 11 vs 12

$
0
0

OK, so I ordered version 12.10.0.30 from my company AppStore!

The ordering process went fine!

I got all the approvals. Got the PO. Got an invoice with the License information; ready for install by the IT install team....

At the 11th hour, the install team advised that the installation would not happen due to installing version 11.5.1.2 which is not the current version?

Where do I go from here!!!! Refund the purchase and start the process over???

Please advise.

Thanks.

RE: Text highlighting in TOAD 12.12

$
0
0

I did not change anything on the new version.  It just works differently.  Thanks for pointing out where I can change it.  I don't like any of the "Transparency" options in 12.12.  If I set it to 0 in 12.11 I can read it just fine, If I do that in 12.12 I get a block of yellow that obscures the text.  Increasing the transparency helps somewhat, but is washed out.  I will stick with 12.11 for a while. 

This reminds me of when we lost the code bracketing in 12.6 that tied IF/END IF, LOOP/ END LOOP and BEGIN/END statements together.  We still have people using 12.6 because they love that feature.

RE: Text highlighting in TOAD 12.12

$
0
0
I have begged for the code bracketing to be put back as well.  I’ve got a team of developers that protested that loss of functionality by switching to SQL Developer.  It didn’t last long, but it would be great if it could be put back.  I posted in the enhancement area to have this added back… 
 
I also miss the lines that used to extend from the start of the block to the end of the block in the code.  The current lines are in the gutter and the they overlap so you can’t visually see where nested blocks start and stop.
 
Thanks,
David
 
p.s. sorry to highjack your thread.
 
 

RE: Text highlighting in TOAD 12.12

$
0
0

I've not encountered this before other than when the default font color and search color are so close that the text cannot be distinguished. In your screenshot I can still see the text behind, faintly, which is why I thought maybe your Default font color has been changed to something like silver instead of black.

Can you send me 3 more things...

  1. A screenshot of the same text in 12.11 and 12.12 that does not have a text selection.
  2. Your EditorLexers.xml file from both 12.11 and 12.12. This file stores all syntax decoration settings. I'd like to run them locally to look for problems/corruption within or upgrade issues. It's located in your appdata user files folder which is located by default here...
    1. 12.11... C:\Users\%USERNAME%\AppData\Roaming\Quest Software\Toad for Oracle\12.11\User Files
    2. 12.12... C:\Users\%USERNAME%\AppData\Roaming\Quest Software\Toad for Oracle\12.12\User Files

You can email to me at michael<dot>staszewski<at>quest.com

> We still have people using 12.6 because they love that feature.

I realize this was a big loss for some and these users will remain on older versions for quite some time, unfortunately. It's no small undertaking to reintroduce that feature and doing so could put us into a one-off situation from the base edit control making future upgrades to it nearly impossible. As it stands now we have very few custom changes to the edit control which puts us in a better position to stay up to date with bug fixes and enhancements.

There are several visual aids to identify blocks of code.

  1. The folding margin highlights all active blocks in red by default
  2. Vertical lines at tab stops - this is useful if you use uniform indenting to format at tab stops
  3. Highlighting of all major tokens within the block.

All three of these features are visible below. For this reason restoring the block "staples" of old is very low on the priority list.

Thanks,

Michael

RE: How to use a PIPELINE in plsql

$
0
0

Hi Srivathsava,

Hopefully, the following will help.

-- Create a test table first and populate it with some data.
create table xx_emp_apprvr_tbl(
    Person_id number(6),
    Transaction_id number(8)
);

insert into xx_emp_apprvr_tbl values (1,1);
insert into xx_emp_apprvr_tbl values (2,1);
insert into xx_emp_apprvr_tbl values (3,1);
insert into xx_emp_apprvr_tbl values (616,1);
insert into xx_emp_apprvr_tbl values (1,2);
insert into xx_emp_apprvr_tbl values (777,2);
insert into xx_emp_apprvr_tbl values (666,300);
insert into xx_emp_apprvr_tbl values (1002, 450);
commit;

CREATE OR REPLACE PACKAGE abc_pkg AS
    -- Create a record type for the data we want to return. Doing it as
    -- a record in this manner allows the column_names to be explicitly
    -- specified. In this case, we will see PERSON_ID rather than the
    -- default COLUMN_NAME.
    TYPE Person_id_rec is record (person_id xx_emp_apprvr_tbl.Person_id%type);
 
    -- Now we must create a type of a table of the above records, as this
    -- is what the pipelined functions return, tables.
    TYPE Person_id_table IS TABLE OF Person_id_rec;
 
    -- Finally, our pipelined function to return all the person_id_recs for
    -- a given transaction_id passed in.
    FUNCTION abc_fun(TID NUMBER) RETURN Person_id_table PIPELINED;
END abc_pkg;
/


CREATE OR REPLACE PACKAGE BODY abc_pkg AS

  FUNCTION abc_fun(TID NUMBER) RETURN Person_id_table PIPELINED IS
  BEGIN
    -- Loop around each person_id in the table, who has a given
    -- transaction_id. For each record found, pipe it back to
    -- the caller.
    FOR rec IN (select person_id
                from  xx_emp_apprvr_tbl
                where transaction_id = TID)
    LOOP
      PIPE ROW(rec);
    END LOOP;
    
    -- This is a function, so we must return something, but as this
    -- is a pipelined function, RETURN on its own will do.
    RETURN;
  END abc_fun;
 
END abc_pkg;
/


select * from table(abc_pkg.abc_fun(1)) order by 1;

PERSON_ID
1
2
3
616

Ok, an explanation.

You must return a table of some kind from a pipelined function. As you wish to return a single column, the person_id, we first create a TYPE of person_id_rec in the package itself. Doing this as a record is useful because it allows you to name the column(s) that your function will return. Here I've simply named it PERSON_ID. You will note that I have "anchored" the PERSON_ID column in the record type, to the table's PERSON_ID column by the way I've used table_name.column_name%type in the creation of the type. That way, if PERSON_ID in the table is ever changed, you won't have to search all your code to make changes, Oracle will simply recompile it on the fly for you! You should almost never hard code a data type when it relates to something in a table or view.

Next we have to create a table of the record type. This is what the pipelined function will return. In this case, I call it person_id_table and it is simply a table of the above record type.

Finally, we have your abc_fun function, which takes in a single parameter of the correct type for a transaction_id in the table (you see that I have anchored that as well) and returns a value which is a table type, the one we have just created, person_id_table.

In the package body, the function is pretty simple, it enters a loop for each row in the table which has the supplied transaction_id. Each row is referred to as "rec" and each row is simply PIPEd out to the caller. Functions must return something, but pipelined functions just need to RETURN.

When you execute the SQL statement:

select * from table(abc_pkg.abc_fun(1));

You will see that the column name in the output (as shown above) is named PERSON_ID as we created in our record.

HTH

Cheers,

Norm. [TeamT]


RE: How to use a PIPELINE in plsql

$
0
0

I wrote:

Finally, we have your abc_fun function, which takes in a single parameter of the correct type for a transaction_id in the table (you see that I have anchored that as well) and returns a value which is a table type, the one we have just created, person_id_table.

Obviously, I DIDN'T anchor the trasaction_id, but I SHOULD have! Sorry about that.

How to use a PIPELINE in plsql

$
0
0

Hi Experts,

We have a requirement where the 'select person_id from TABLE(abc_pkg.abc_fun(:transactionId)) ORDER BY emp_level' should be used where it returns more than one person (we are using this query in Oracle Apps AME to fetch the list of approvers. So we need to use in this format only).

We have XX_EMP_APPRVR_TBL table where it has list of all employees. So, we need to fetch all person_ids from XX_EMP_APPRVR_TBL using abc_pkg.abc_fun. Here, we heared that we need to use PIPELINE command to achieve the result.

Can anyone please help me on how to create function using PIPELINE

Thanks and Regards,

Sri

RE: Export the Data to Excel via the Automation Designer

$
0
0

re: ERROR: The path %1 could not be found error - could be because there are spaces in the output file path. Try creating a folder/file on the network drive without any space and run...it should go through ok.

Export the Data to Excel via the Automation Designer

$
0
0

Group,

I'm using Automation Designer to run a query and then export the data as an Excel file.  I've used the "If..Then..Else" to start the run.  

My first step is to connect to the server.  This is working fine with no problems.  In the next step, it's attempting to run the query via the "Export Dataset" which I've named "PDA Update".  The properties look like this:

Using this method, this always fails.  I can run it manually with no issues,  But if it is scheduled at a specific time, it fails.  The error message says:

1/7/2016 6:15:11 AM: PDA Update (Export Dataset) started.
1/7/2016 6:15:16 AM: ERROR: The path %1 could not be found
1/7/2016 6:15:16 AM: PDA Update (Export Dataset) finished.

Can you help me determine why this is failing?

  

For the record, I have other automated processes that are running with no issues.  The only difference is these are using the "Execute Script" method.  Any thoughts as to why it is failing?

In advance, thanks for your help.

Don

RE: Text highlighting in TOAD 12.12

$
0
0

Thanks for working with me offline, John. There is an issue when low transparency is used for the Search Match style to achieve the deep contrast you have going on. There is a workaround to increase the Search Match transparency to something moderately high like 50%, 70%, etc. The default setting is 71% for that style. It's not a complete fix and the text does still have a bit of a washed out effect as you note, but it makes it legible. I've logged this.

Thanks,

Michael

RE: Schema compare in Toad 12.12

$
0
0
I hope Compare Multiple Schemas works out for you but we would also like to know exactly what is going on with Compare Schemas.  Some options did not work in 12.11 but we fixed them in 12.12.  Have you had a chance to try 12.12 to see if these options still don't work?  If you find these issues in 12.12, please tell us specifically what is not working.
 
Thanks!
 

RE: Format for date query


RE: Importing code sytax highlighting styles to Toad 12

$
0
0

You will need to reset your highlighting in 12.10. There was a change in the edit control between 11 and 12.10. The new is so dramatically different and there is not a one to one mapping of the old syntax highlighting styles to the new. Any attempt at automatic migration would have failed somewhere.

Michael

Importing code sytax highlighting styles to Toad 12

$
0
0

I'm trying to migrate from Toad 11 to Toad 12.10.

In Toad 11, there was a very straightforward import/export button for syntax highlighting. In Toad 12.10 it looks like my only option is to import styles from an Oracle server?

I have the .lcf file from Toad 11, how can I use this in Toad 12?

RE: Format for date query

$
0
0

Hi Luis,

I have had a quick look in the 10.2 docs and found, because I'm interested (and possibly a saddo!) that in 10.2, and upwards, certain NLS defaults are set based on the setting of NLS_TERRITORY and NLS_LANGUAGE. These, in turn default to whatever NLS_LANG is set to in the shell on the database server. If your server is Unix/Linux then setting NLS_LANG=language_territory.characterset will define the date format default, the names of the days of the week/months of the year/error messages etc.

I usually have something like NLS_LANG="ENGLISH_UNITED KINGDOM.WE8ISO8859P15"  which gives me a default date format of 'DD-MON-RR' but if I set NLS_LANG to "GERMAN_BELGIUM.WE8ISO8859P15" I get a default date format of 'DD/MM/RR' instead.

Obviously, these are set up in the absence of the DBA actually setting a format in the spfile/parameter file used for starting the database.

Prior to 10.2 only NLS_TERRITORY was considered, not NLS_LANGUAGE but apparently, some countries (territories) have multiple languages! Who would have though? ;-)

Cheers.

Norm. [TeamT]

TOAD 12.12 export to excel file doesn't work (freezes client)

TOAD for Oracle 12.12 Exporting to Excel File error

$
0
0

Is anyone else having issues with exporting to excel file? It seems to crash my client for datasets with over 50k rows, but exporting as excel instance works in those cases. There are 8 queries I need to run and save as individual excel files so it would be great to get it work. I'm hoping to ultimately use the automation designer to automate running the queries/saving to excel files.

Viewing all 4385 articles
Browse latest View live


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