still not get the procedure to compile and run
Sorry again for the problems.Here is the entire SQL, but I suspect seriously the problem is originally somewhere, with one of the statements.
Any help would be appreciated. Given that I get do this work without a stored procedure (all except the statement execute immediate), then I guess my logic is ok, but as I said, something is not upward.
Thank you
Floyd
The sql is:
coil proc.err
CREATE OR REPLACE PROCEDURE floydw.loadtable_config AS
I have pls_integer;
sql_stmt VARCHAR2 (4000);
all_names VARCHAR2 (4000);
all_names2 VARCHAR2 (4000);
TYPE typ_coltab IS TABLE OF dba_tab_columns % ROWTYPE INDEX BY pls_integer;
coltab_table typ_coltab;
coltab_table2 typ_coltab;
coltab_rec dba_tab_columns % ROWTYPE;
CURSOR cur is SELECT *.
FROM dba_tab_columns where owner = 'GWSTAGING_SENTRYPROD' and table_name = 'CONFIG ';
BEGIN
I: = 0;
Heart OPEN;
LOOP
EXTRACT the heart in coltab_rec;
When the output cur % notfound;
i: = i + 1;
coltab_table (i): = coltab_rec;
coltab_table2 (i) .column_name: = "" ' | " coltab_table (i) .column_name | '"' ;
END LOOP;
all_names: = NULL;
all_names2: = NULL;
FOR j IN 1... I have
LOOP
all_names: = all_names | ',' || coltab_table (j) .column_name;
all_names2: = all_names2 | ',' || coltab_table2 (j) .column_name;
END LOOP;
all_names: = SUBSTR (all_names, 2); -Delete ',' start of list
all_names2: = SUBSTR (all_names2, 2); -Delete ',' start of list
sql_stmt: = 'insert ' | coltab_rec.table_name | ' (' | all_names |) ') SELECT ' | all_names2 | 'OF' config"@sentry_l;';
-dbms_output.put_line ('run' | sql_stmt);
run immediately sql_stmt;
END;
/
If I try to create such what, I get:
SQL > show errors
Errors of PROCEDURE FLOYDW. LOADTABLE_CONFIG:
LINE/COL ERROR
-------- -----------------------------------------------------------------
7/3 PL/SQL: ignored element
7/31 PLS-00201: identifier 'DBA_TAB_COLUMNS' must be declared
10/14 PL/SQL: ignored element
10/14 PLS-00201: identifier 'DBA_TAB_COLUMNS' must be declared
11/18 PL/SQL: statement ignored
12/8 PL/SQL: ORA-00942: table or view does not exist
18/5 PL/SQL: statement ignored
18/20 PLS-00320: the declaration of the type of this expression is
incomplete or incorrect
21/5 PL/SQL: statement ignored
LINE/COL ERROR
-------- -----------------------------------------------------------------
21/24 PLS-00320: the declaration of the type of this expression is
incomplete or incorrect
22/5 PL/SQL: statement ignored
22/22 PLS-00487: Invalid reference to variable
"DBA_TAB_COLUMNS % ROWTYPE.
30/7 PL/SQL: statement ignored
PLS-00487 30/56: Invalid reference to variable
"DBA_TAB_COLUMNS % ROWTYPE.
LINE/COL ERROR
-------- -----------------------------------------------------------------
31/7 PL/SQL: statement ignored
31/61 PLS-00487: Invalid reference to variable
"DBA_TAB_COLUMNS % ROWTYPE.
37/3 PL/SQL: statement ignored
37/33 PLS-00320: the declaration of the type of this expression is
incomplete or incorrect
Hello
Apparently, there is something wrong with the dynamic SQL statement sql_stmt.
sql_stmt := 'insert into ' || coltab_rec.table_name ||' (' || all_names || ') SELECT ' || all_names2 || ' FROM "config"@sentry_l ;' ;
I see an error: sql_stmt must not end with a semicolon. Try:
sql_stmt := 'insert into '
|| coltab_rec.table_name
|| ' ('
|| all_names
|| ') SELECT '
|| all_names2
|| ' FROM "config"@sentry_l' ;
Looks like you have a commented line scheduled for debugging sql_stmt:
--dbms_output.put_line ('executing ' || sql_stmt) ;
This could be a good time to use it.
Remember that the names inside quotation marks are not automatcially converted to uppercase.
So, if you say
... || ' FROM "config"@sentry_l' ;
then the table name config (all lowercase letters) should work on sentry_l.
Tags: Database
Similar Questions
-
Still not get the filtering and the SUMIF with visible cells
Hi all
I know it is a pain for you people, but I'm really stuck with this problem.
I tried to use the answers I found in the community and the User Guide, but I have to be closed to this kind of explanation.
Once again:
In the column A is a series of dates
In column B the value corresponding
In the foot of B line, I want the SumOf only the visible cells that I filtered before.
So far I have always the sum of all the lines, filtered or not.
I added another column with a True/False value and tried to use it but get the same result.
I'm pretty slow, so I guess that I'll need your help once more.
It is the sum before filtering:
And that's the sum after filtering:
I thank you for your time and patience.
Lopez
Lopez Hello,
Table filtering only affects the rows that are displayed. Hidden lines are always included in the calculations of formulas referring to them.
Your formula, = SUM (B2:B16) summarizes the content of all the B2 to B16 cells, including those that are hidden.
There are several other functions in the family of the SUM. SUM, SUMIF and SUMIF. ENS are of interest here.
SUMIF (English: SUMIF) accepts a condition and only adds the cells on the lines which is assembled as a condition.
SUMIF. ENS (English: SUMIFS) accepts several conditions and only adds the cells on the rows that meet all the conditions.
For the example stated in your post, must be the form you need:
= SUMIF. ENS(B; A; "> = 02/01/2016." A; "" < 03/01/2016 ")"
(NOT tested. The dates should be placed in two cells and these cells referenced in the formula. post a reply with any error message if the formula does not work as written).
The lines not included in the amount need not be hidden.
If the formula is inserted into column B, it must be in a line defined as a footer line using the menu item in the same position as the highlight in this screenshot:
Footer lines can be placed on foot (bottom) of a table.
Kind regards
Barry
-
How can I get the activity indicator to work?
Hello, could you post that the ctr help wireless http://forums.mozillazine.org/viewtopic.php?f=48 & t = 2827985 instead? Here you can receive the best support for any questions...
-
Hi I currently have a subscription to the CC PS, but I don't think I have the latest version. I think this because I don't you the new Welcome screen and do not have new features such as the structure and color in the content aware patch tool. I checked the updates and it tells me I have the current version. I check in PS I version 14.2.1. I also have CS6 installed on my PC, it could be somehow be do something or I'm doing something wrong. Anyone have any suggestions.
It's under 'find new applications '. You must scroll down to see it.
-
Still not get the trial of Lightroom to work
I tried the suggestions of empty preferences (Mac 10.9.1) library and other steps in 'error in the module to change' suggestions and no luck. Tried to reinstall and do the same thing. Is this a problem with the new update of Apple? I'm down for engineers are still working on this sentence on the suggestions.
Please keep to one thread per issue, it is a hard work for some of us, trying to help.
I am locking this thread.
-
I have window 7, sp1, but still not get the icon.
I tried to turn off group policy several times without success, every thing is blocked b a
Group Policy
Hello
This problem is better suited in the TechNet forums. Please post here:
https://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?Forum=winserverGP
-
Still not get quick change or log in screen which has all of the names to open a session
Hello
So in this case I recommend you to uninstall the complete NetWare using a 3rd party UN-install commercially available
For example http://www.revouninstaller.com/index.html
There are also many other software that I don't remember not and are available free on the internet for UN-install/remove left on entries of an application.
Saurabh yapi | E-mail address is removed from the privacy *.
-
photos has not been loaded for weeks (usually the browser chrome on PC windows at work). I tried now on some other computers and get the same error message and I report every time. is there anything I can do or just wait for someone to fix it?
If you want any help here, you'll have to tell us what the error message.
Which report you errors to?
-
I use the old style Firefox browser and can not get the password manager to remember a password of my main site. How can I do this?
Thanks for the advice, I went to another program... Last time... and saved my passwords with it. I find it easy to use and non-intrusive, and it has several features that are very convenient for me.
-
I have Firefox 8.0.1 and since the update to it, some sites, I need to go so that Firefox will not accept certificates which is accepted in the previous version. I can not get the permanent exception and must uncheck permanent
You can use this button to go to the Firefox profile folder:
- Help > troubleshooting information > profile directory: opens showing the file
It is not usually necessary to create an exception for the certificates.
Possible causes are that a server does not send the full (intermediate) certificate chain or self signed certificates. -
I download the latest version of Firefox, but when I go to sign up for google + it tells me that my browser is no longer supported. I tried uninstalling and everything, but can not get the new version appears. Any Suggestions?
Please see that.
-
I have a new mac air and can not get the bookmark to be deleted in Safari.
I have a new mac air and can not get the bookmark to be deleted in Safari. It has default Favorites - I don't want to see them--when I right click and select Remove - I get this error message.
You are using Safari with bookmarks, history, and imported passwords of Firefox. To change your Favorites, you must first keep or delete data from Firefox.
When I click on "do not keep" nothing happens.
Please, back up all data before proceeding.
Triple-click anywhere in the line below on this page to select this option:
~/Library/Preferences/com.apple.Safari.plist
A right click or Ctrl-click on the line and select
Services ▹ reveal in Finder (or just to reveal)
of the contextual menu.*, a file must open with a selected item. Quit the application runs. Move selected item to the office, leaving the window open. Restart the application and test. If there is no change, leave again and place the item you back where he was, crushing the that may have been created in its place. If not, remove the item you moved. If possible, restore from a backup prior to the problem.
* If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select
Go ▹ go to the folder...
from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.
-
Hi everyone, this is my first post, also help on the post would be appreciated.
I bought ipad air 1 after that 2013 but can not get the pages for free. Numbers and imovie I can. IOS9 running at the moment. I have pages when I connect on icloud on my pc. Can I transfer iPad app, because it is not in the ILO purchased in itunes.
Thanks in advance
Newbie
The only way to install an ipad app is through the app store. PC or Mac software does not run on the ipad. Search in the contacts link at the bottom right of this page. Give apple a call.
I guess is the icon for pages in icloud for storing documents pages. At the same time, apple had a cloud based pages. Not sure what happened to her.
R
-
the procurement process from the shock of the clans the amount was deducted in full and did not get the gems has helped me
Have you contacted the developer of the game? If you have, and they cannot / does not help, then try to contact iTunes Support: http://reportaproblem.apple.com
Edit: Corrected URL
-
Satellite P200 - 1 K 8 - could not get the display and audio drivers to work
Hello.
I'm getting desperate. I tried everything I could imagine.First of all - do not get the control center catalyst to work, I don't have the graphics driver installed now (I tried both - Toshiba and Mobility Modder modified driver ATi - none works.)
Second - when I install the audio driver Realtek audio Manager is encoutering the problem and needs to close every time at startup. And Yes, I updated the BIOS to version 5.20 installed XPSP3, chipset driver installed (the most recent Intel homepage or one of Toshiba, anyone, always the same question).Help, please. I don't want to spend the rest of my life trying to get XP on my laptop.
Thanks in advance.Can you please send the number of full model of your laptop?
Maybe you are looking for
-
Cannot open attachments to emails from the desk top
-
Looking for DVD recover my Satellite P200
Hello I am looking for a DVD reinstall my Satellite P200 - 12 K (preferably in french)Thank you for your help. Philippe
-
Communication issues and windows Wireless.
Hello Please how can I switch on my communication wireless in the Config Free?Mine offers a solution (c1), but I put t know what he meant by c1 and how do I install IIS on my windows, I got a Xp home edition?I tried formatting and installing Xp Pro,
-
Password problems - I have the username and password, but they do not work
I have a computer from another branch of my company. I have the user name and password, but they do not work and in fact he invites me to a former user name and the password does not work for this name and no longer allows me access. Any ideas on ho
-
Questions classic blackBerry with the app "Help".
When I run the application for assistance on my classic, I Frequently asked questions The Setup and basic principles Downloads Phone and voice etc. When I go to the frequently asked questions, I see How to block calls? How can I configure BlackBerry