toad

How to get information about compile error in Oracle/TOAD

大城市里の小女人 提交于 2019-11-29 03:02:06
问题 I'm using TOAD to develop a stored function in an Oracle database. When I click the "run as script" button in TOAD, it tells me that the script was executed with 0 errors and 1 compile errors. Where do I see the specific compile error(s). I'm fairly new to TOAD so I might be missing something obvious about the interface like a tab/window to see such error messages. 回答1: You can either add SHOW ERRORS to the end of the script, which will print the error message(s) to the "script output" tab,

How can I solve ORA-00911: invalid character error?

被刻印的时光 ゝ 提交于 2019-11-28 20:27:17
I tried to execute an SQL INSERT with Toad for oracle : INSERT INTO GRAT_ACTIVITY (UUID, IP_ADRESS, SEND_MAIL, DATE_CREA, DATE_UPD, CREATOR, CENTER, ETAT, REQUEST) VALUES('555-vgd9-pllkd-5513', '172.12.23.130', 'N', SYSDATE, SYSDATE, '1554', 'M18', 'I', 8842); --COMMIT; the GRAT_ACTIVITY table structure is as below: CREATE TABLE CASH.GRAT_ACTIVITY ( UUID VARCHAR2(64 BYTE) NOT NULL, IP_ADRESS VARCHAR2(15 BYTE), SEND_MAIL VARCHAR2(1 BYTE), DATE_CREA DATE, DATE_UPD DATE, CREATOR VARCHAR2(4 BYTE), CENTER VARCHAR2(4 BYTE), ETAT VARCHAR2(1 BYTE), REQUEST NUMBER ) the error message: ORA-00911:

ORA-12170: TNS:Connect timeout occurred

99封情书 提交于 2019-11-28 19:34:11
I was trying to connect to the database here in my laptop using Oracle Toad but I kept on having this error: ORA-12170: TNS:Connect timeout occurred What are the possible reasons why I kept on having this error? I accessed the same database yesterday and was able to accessed it. [Gathering the answers in the comments] The problem is that the Oracle service is running on a IP address, and the host is configured with another IP address. To see the IP address of the Oracle service, issue an lsnrctl status command and check the address reported (in this case is 127.0.0.1, the localhost):

How to export the result into different tabs of Excel in Toad for Data Analyst?

六月ゝ 毕业季﹏ 提交于 2019-11-28 12:39:47
Does anyone know how to export results from more than one query into different sheets of the same Excel workbook using the report automation in TOAD for data analyst? Thank you Zoki I'm not sure that you can do that with Toad automatically but there is a little trick that you can do with Excel. Write first query and execute it in Toad, after that right click on query result data grid and choose "Export dataset...", under Excel format choose "Excel instance" and click OK. It will open Excel and add one sheet with data from your query. Repeat same process for second query and it will add another

Using IF ELSE in Oracle

不问归期 提交于 2019-11-28 10:08:43
As a web developer, I know how to use the IF ELSE in multiple languages. However, I am learning how to write reports using TOAD for Oracle. My question is, how do I properly add an IF ELSE statement? This is what I am attempting to do. The error is: Command not Properly Ended. (VIKKIE to ICKY has been tasked to me by my supervisor to help me learn) SELECT DISTINCT a.item, b.salesman, NVL(a.manufacturer,'Not Set')Manufacturer FROM inv_items a, arv_sales b WHERE a.co = '100' AND a.co = b.co AND A.ITEM_KEY = b.item_key --AND item IN ('BX4C', 'BX8C', 'BX866') --AND salesman ='15' AND a.item LIKE

Toad常用快捷键

心不动则不痛 提交于 2019-11-28 05:05:11
Toad常用快捷键: F8 调出以前执行的sql命令 F9 执行全部sql Ctrl+t 补全table_name Ctrl+. 补全table_name alt+ 箭头上下 看sql history Ctrl+Enter 直接执行当前sql Ctrl+Shift+F 格式化sql语句。 Ctrl U 变大写 Ctrl L 变小写 Ctrl B 注释 Ctrl Shift B 取消注释 Shift+ F8单步执行 Shift+ F7进入执行 来源: https://www.cnblogs.com/turnip/p/11392896.html

How to turn on table name autocomplete feature in Toad?

核能气质少年 提交于 2019-11-27 12:02:32
问题 I'm using Toad version 11.0.0.116. I'm not getting default tablename options when I start typing table. How to turn the autocomplete feature on?? 回答1: Pressing Ctrl + . should show you a list of available tables. For example typing: SELECT * FROM U and then pressing Ctrl + . should show you a list of all the tables starting with "U" 回答2: As an alternative you can press Ctrl + T 回答3: Try setting a default schema: Toad Options > Oracle > General > Default Schema. 来源: https://stackoverflow.com

Calling a stored PROCEDURE in Toad

倾然丶 夕夏残阳落幕 提交于 2019-11-27 07:43:22
问题 I have a defined a new stored procedure but get a error while calling it, CREATE OR REPLACE PROCEDURE SCOTT.getempsal( p_emp_id IN NUMBER, p_emp_month IN CHAR, p_emp_sal OUT INTEGER) AS BEGIN SELECT EMP_SAL INTO p_emp_sal FROM EMPLOYEE_SAL WHERE EMP_ID = p_emp_id AND EMP_MONTH = p_emp_month; END getempsal; And trying to call it: getempsal(1,'JAN',OUT) --Invalid sql statement. 回答1: Your procedure contains an out parameter, so you need to call it in block like: declare a number; begin getempsal

How to export the result into different tabs of Excel in Toad for Data Analyst?

与世无争的帅哥 提交于 2019-11-27 07:13:19
问题 Does anyone know how to export results from more than one query into different sheets of the same Excel workbook using the report automation in TOAD for data analyst? Thank you 回答1: I'm not sure that you can do that with Toad automatically but there is a little trick that you can do with Excel. Write first query and execute it in Toad, after that right click on query result data grid and choose "Export dataset...", under Excel format choose "Excel instance" and click OK. It will open Excel

Is there a workaround for ORA-01795: maximum number of expressions in a list is 1000 error?

我的梦境 提交于 2019-11-27 03:47:17
Is there a workaround for 'ORA-01795: maximum number of expressions in a list is 1000 error' I have a query and it is selecting fields based on the value of one field. I am using the in clause and there are 10000+ values example: select field1, field2, field3 from table1 where name in ( 'value1', 'value2', ... 'value10000+' ); Every time I execute the query I get the ORA-01795: maximum number of expressions in a list is 1000 error . I am trying to execute the query in TOAD, no difference, the same error. How would I modify the query to get it to work? Thanks in advance Just use multiple in