toad

Toad: 10.6: Seek clear instructions on automating reoccuring excel reports

血红的双手。 提交于 2020-01-01 21:54:17
问题 I am new to Toad 10.6.1 and have a question about running a SQL script and email data as an excel file on a scheduled basis. How do I run script and save as excel format and email as excel file to automatically? Thank you for your time. Below is what I've done so far but dont think its correct as I get "ORA-00911: invalid character" on step #5 . Select Utilities | Automation Designer menu option Select DB Misc tab from right side pane Last icon in this tab is Execute Script, double click on

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

梦想与她 提交于 2019-12-28 11:59:13
问题 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)

SQL - Add a border bottom when column value changes

喜你入骨 提交于 2019-12-25 04:43:06
问题 I'm trying to add a border bottom red style to a table when the column value changes. As shown in the picture, I want to add a bottom border when FamilyID changes it's value. Any help is greatly appreciated and thank you in advance! 回答1: I have implemented same thing on classic report of employee , you can check url https://apex.oracle.com/pls/apex/f?p=26095 with userid: AMOL.PATIL@VYOMLABS.COM pass : Unicorn@123 Code in execute JavaScript page load section: var previous=null; var flag; $("td

How to connect to MySQl db on linux server using toad?

℡╲_俬逩灬. 提交于 2019-12-25 02:44:21
问题 How to connect to MySQl db on linux server using toad? what i should give on host? i get the error Can't connect to MySQL server on 'tinywall' (10061) 回答1: Do you use Toad for MySQL? If so, check out this installation guide if you missed anything, or this PDF guide from ToadSoft. Also, have a look at this quote from MySQL's page on connection problems: The error (2003) Can't connect to MySQL server on 'server' (10061) indicates that the network connection has been refused. You should check

Compare rows and columns of same table

。_饼干妹妹 提交于 2019-12-24 17:24:55
问题 +--------------+--------------+------------+ | company_name | address_type | address | +--------------+--------------+------------+ | Company A | Billing | 111 Street | | Company A | Shipping | 111 Street | | Company B | Billing | 222 Street | | Company B | Shipping | 333 street | | Company B | Shipping | 444 street | +--------------+--------------+------------+ I have a table similar to this. What i need is All the companies whose billing address and shipping address are different . NOTE -

Oracle invalid number in clause

不羁的心 提交于 2019-12-24 17:08:26
问题 I'm struggling with getting a query to work, and I could really use some help. We have an in house app that we use for building small web apps where I work. It's basically a drag and drop GUI. There's functionality built in to access query string values using the key. I'm passing a comma separated list of values into a page through the query string. I'm then trying to use the list of values as part of an in clause in a query. I can see that the value is correct in the query string. orders=1,2

How to display sys_refcursor output pl sql with Toad tool

為{幸葍}努か 提交于 2019-12-24 11:29:46
问题 I have written a query to execute the SP. The execution works fine with this. However, I'm not able to see output results. declare v_rc sys_refcursor; begin SUSER.TRANS_REP (v_rc ,'Investments Series','31-12-2012','Dealer Group','All Adv') ; end; How to display output result with sys_refcursor. Please help. note: I tried to print cursor but did not get any help. Also refered this (How to display a sys_refcursor data in TOAD's DataGrid and https://community.oracle.com/thread/627571), but still

What are roles and privileges to give a user in order to perform CRUD(on Oracle 12)

随声附和 提交于 2019-12-24 11:27:51
问题 I'm creating a USER on Oracle 12 c database, using TOAD . After creating the TABLESPACE , I'm creating the USER . I'm a little confusing about the many ROLES and PRIVILEGES that can be given to a USER. What are the minimum/standard roles and privileges a user must be given in order to perform CRUD operation and being able to 'edit' the database (create or delete table, DROP the schema ecc) from TOAD? Thank you 回答1: It depends on what operations are you going to perform. If you want to work

Return zero value when no row data exists

♀尐吖头ヾ 提交于 2019-12-24 08:48:17
问题 My question has been addressed previously but I can't seem to apply any solution to my query to make it work. Would very much appreciate some guidance. My current query below returns this data set: | Age | Count | 0-1 day 300 2-3 days 6000 3-4 days 100 SELECT(CASE WHEN time_dtm > SYSDATE -1 THEN '0-1 day' WHEN time_dtm > SYSDATE -2 AND time_dtm < SYSDATE -1 THEN '1-2 days' WHEN time_dtm > SYSDATE -3 AND time_dtm < SYSDATE -2 THEN '2-3 days' WHEN time_dtm > SYSDATE -4 AND time_dtm < SYSDATE -3

Oracle to_date() incorrect output

笑着哭i 提交于 2019-12-24 00:16:09
问题 There must be a very simple answer, but I can't find it anywhere. I have the following which is a section of my select statement: case when q.renewal_date is not null then to_date(q._renewal_date, 'DD/MM/YYYY') else to_date(w.END_DATE, 'DD/MM/YYYY') end END_DATE, according to all of the docs I can find the MM should give the month in numbers however I'm getting results such as: 30-SEP-12 26-JUN-11 30-SEP-12 It's also interesting that they're hyphenated (-) and not with slashes (/). So what's