%rowtype and %type does not seem to work for 8i
Hello,
I have tried to define a package and in the package
specification I have defined
type abc is ref cursor return qq%rowtype;
The table qq exists and I can see it, insert into it.
I have got an error, when I declare a procedure with
formal parameters using %type inside a package specification.
After changing %type to number I can compile.
When I declare an anonymous block with %rowtype definition I am fine.
According to the documentation %rowtype and %row are allowed in packages. Is it a well known bug?
Do you have direct grant on the QQ table or is it role based?
Role based access is not recognized in PL/SQL stored procedures.
Similar Messages
-
My iMovie 11 movie has clips that have some extracted audio that I would like to use for the menu music in iDVD 11. Does anyone know how to do this? Copy and paste does not seem to work.
I would use Quicktime Pro.
See: QuickTime Pro: How to Extract or Disable Tracks at http://docs.info.apple.com/article.html?artnum=42596 and QuickTime Player 7 Help - Extracting, Adding, and Moving Tracks at http://docs.info.apple.com/article.html?path=QuickTime%20Player/7/en/c3qt6.html
To get Quicktime 7.6.6 for Snow Leopard see: QuickTime Player 7.6.6 for Mac OS X v10.6.3 at http://support.apple.com/kb/DL923 (Quicktime 7.6.6 is the latest version.)
To upgrade to Quicktime Pro see: QuickTime Player 7 Help - Getting QuickTime Pro at http://docs.info.apple.com/article.html?path=QuickTime%20Player/7/en/c2qt.html -
With Windows 7 I upgraded itunes to 11. Now in my itunes library, when I click on a song "original file could not be found" comes up. This happens with over 2000 songs, but it seems to be ones I recorded from cd's. Locate does not seem to work. Has anyone else had this problem?
Highlight a song that is supposedly missing, press CTRL+I to Get Info, say no when asked to locate the file, then look at the summary tab. Where does iTunes "think" the file should be? Where is it really? You may need to give a configuration file a minor tweak.
tt2 -
DBMS_TYPES with timestamp and interval does not seem to work.
I have a PL/SQL script that seems to work for char,varchar,numerics, dates, but not for intervals. I basically took example code out of the Oracle manuals and stitched it together.
The code in question is the function colTypeString. Apparently, interval is not being recognized as a type, so the function is returning back unknown. The documentation seems a bit spartan, so I thought perhaps you can help me out.
Thanks.
Here's the code:
create table interval_test( intym interval year(4) to month, intdm interval day(3) to second(4) );
execute oraforum_pkg.desc_query( 'select * from interval_test' );
col_type = 182, UNKNOWN_TYPE
col_maxlen = 5
col_name = INTYM
col_name_len = 5
col_schema_name =
col_schema_name_len = 0
col_precision = 4
col_scale = 0
col_null_ok = true
col_type = 183, UNKNOWN_TYPE
col_maxlen = 11
col_name = INTDM
col_name_len = 5
col_schema_name =
col_schema_name_len = 0
col_precision = 3
col_scale = 4
col_null_ok = true
PL/SQL procedure successfully completed.
Here's the package:
-- Define the ref cursor types and function
CREATE OR REPLACE PACKAGE oraforum_pkg IS
FUNCTION colTypeString( typeId in integer) return varchar2; -- typeId from dbms_types
PROCEDURE print_rec(rec in DBMS_SQL.DESC_REC);
PROCEDURE desc_query( selectSql in varchar2 );
END oraforum_pkg;
CREATE OR REPLACE PACKAGE BODY oraforum_pkg IS
FUNCTION colTypeString( typeId in integer)
return varchar2 -- typeId from dbms_types
is
rval varchar2(40) := 'Unknown';
BEGIN
case typeId
when DBMS_TYPES.NO_DATA then rval := 'NO_DATA' ;
when DBMS_TYPES.SUCCESS then rval := 'SUCCESS' ;
when DBMS_TYPES.TYPECODE_BDOUBLE then rval := 'BDOUBLE' ;
when DBMS_TYPES.TYPECODE_BFILE then rval := 'BFILE' ;
when DBMS_TYPES.TYPECODE_BFLOAT then rval := 'BFLOAT' ;
when DBMS_TYPES.TYPECODE_BLOB then rval := 'BLOB' ;
when DBMS_TYPES.TYPECODE_CFILE then rval := 'CFILE' ;
when DBMS_TYPES.TYPECODE_CHAR then rval := 'CHAR' ;
when DBMS_TYPES.TYPECODE_CLOB then rval := 'CLOB' ;
when DBMS_TYPES.TYPECODE_DATE then rval := 'DATE' ;
when DBMS_TYPES.TYPECODE_INTERVAL_DS then rval := 'INTERVAL_DS' ;
when DBMS_TYPES.TYPECODE_INTERVAL_YM then rval := 'INTERVAL_YM' ;
when DBMS_TYPES.TYPECODE_MLSLABEL then rval := 'MLSLABEL' ;
when DBMS_TYPES.TYPECODE_NAMEDCOLLECTION then rval := 'NAMEDCOLLECTION' ;
when DBMS_TYPES.TYPECODE_NUMBER then rval := 'NUMBER' ;
when DBMS_TYPES.TYPECODE_OBJECT then rval := 'OBJECT' ;
when DBMS_TYPES.TYPECODE_OPAQUE then rval := 'OPAQUE' ;
when DBMS_TYPES.TYPECODE_RAW then rval := 'RAW' ;
when DBMS_TYPES.TYPECODE_REF then rval := 'REF' ;
when DBMS_TYPES.TYPECODE_TABLE then rval := 'TABLE' ;
when DBMS_TYPES.TYPECODE_TIMESTAMP then rval := 'TIMESTAMP' ;
when DBMS_TYPES.TYPECODE_TIMESTAMP_LTZ then rval := 'TIMESTAMP_LTZ' ;
when DBMS_TYPES.TYPECODE_TIMESTAMP_TZ then rval := 'TIMESTAMP_TZ' ;
when DBMS_TYPES.TYPECODE_VARCHAR2 then rval := 'VARCHAR2' ;
when DBMS_TYPES.TYPECODE_VARCHAR then rval := 'VARCHAR' ;
when DBMS_TYPES.TYPECODE_VARRAY then rval := 'VARRAY' ;
else rval := 'UNKNOWN_TYPE';
end case;
return rval;
END;
PROCEDURE print_rec(rec in DBMS_SQL.DESC_REC) IS
BEGIN
DBMS_OUTPUT.PUT_LINE('col_type = '
|| rec.col_type || ', ' || colTypeString(rec.col_type) );
DBMS_OUTPUT.PUT_LINE('col_maxlen = '
|| rec.col_max_len);
DBMS_OUTPUT.PUT_LINE('col_name = '
|| rec.col_name);
DBMS_OUTPUT.PUT_LINE('col_name_len = '
|| rec.col_name_len);
DBMS_OUTPUT.PUT_LINE('col_schema_name = '
|| rec.col_schema_name);
DBMS_OUTPUT.PUT_LINE('col_schema_name_len = '
|| rec.col_schema_name_len);
DBMS_OUTPUT.PUT_LINE('col_precision = '
|| rec.col_precision);
DBMS_OUTPUT.PUT_LINE('col_scale = '
|| rec.col_scale);
DBMS_OUTPUT.PUT('col_null_ok = ');
IF (rec.col_null_ok) THEN
DBMS_OUTPUT.PUT_LINE('true');
ELSE
DBMS_OUTPUT.PUT_LINE('false');
END IF;
DBMS_OUTPUT.PUT_LINE('');
END;
PROCEDURE desc_query( selectSql in varchar2 ) IS
c NUMBER;
d NUMBER;
col_cnt INTEGER;
f BOOLEAN;
rec_tab DBMS_SQL.DESC_TAB;
col_num NUMBER;
BEGIN
c := DBMS_SQL.OPEN_CURSOR; -- Is this needed for parsing? Yes, as argument to PARSE
DBMS_SQL.PARSE(c, selectSql, DBMS_SQL.NATIVE);
-- d := DBMS_SQL.EXECUTE(c); -- Doesn't look necessary.
DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
* Following loop could simply be for j in 1..col_cnt loop.
* Here we are simply illustrating some of the PL/SQL table
* features.
col_num := rec_tab.first;
IF (col_num IS NOT NULL) THEN
LOOP
print_rec(rec_tab(col_num));
col_num := rec_tab.next(col_num);
EXIT WHEN (col_num IS NULL);
END LOOP;
END IF;
DBMS_SQL.CLOSE_CURSOR(c);
END;
END oraforum_pkg;
Message was edited by:
user554561The issue is that DBMS_SQL and DBMS_TYPES have different typecodes. Which means you can't interrogate the DBMS_SQL.DESC_REC using DBMS_TYPES constants. You could create yourself a package of DBMS_SQL_TYPES.
SQL> create table t ( ts timestamp, iv interval day to second );
Table created.
SQL>
SQL> insert into t values ( systimestamp, interval '1' second );
1 row created.
SQL>
SQL> declare
2 c integer := dbms_sql.open_cursor ();
3 rec_tab dbms_sql.desc_tab;
4 col_cnt integer;
5 begin
6 dbms_sql.parse (c, 'select * from t', dbms_sql.native);
7 dbms_sql.describe_columns (c, col_cnt, rec_tab);
8
9 for i in 1 .. col_cnt
10 loop
11 dbms_output.put_line ('Name: ' || rec_tab (i).col_name || '; Type: ' || rec_tab (i).col_type);
12 end loop;
13
14 dbms_sql.close_cursor (c);
15
16 dbms_output.put_line ('DBMS_TYPES.TYPECODE_TIMESTAMP; Type: ' || DBMS_TYPES.TYPECODE_TIMESTAMP);
17 dbms_output.put_line ('DBMS_TYPES.TYPECODE_INTERVAL_DS; Type: ' || DBMS_TYPES.TYPECODE_INTERVAL_DS);
18
19 end;
20 /
Name: TS; Type: 180
Name: IV; Type: 183
DBMS_TYPES.TYPECODE_TIMESTAMP; Type: 187
DBMS_TYPES.TYPECODE_INTERVAL_DS; Type: 190
PL/SQL procedure successfully completed.Regards -
I bought my daughter a new MacbookPro 13" for grad school and selected the HP Envy 100 printer from the Apple Store website. When I just tried to install the printer, it said that that the software was not compatable with Lion. Any suggestions as to how to get it to work?
Sorry, but the response just takes you to the HP site which is of all possible assistance short of actual help!!
HP (and Apple?) need to fess up and tell all the people who have HP printers when they will "just work" with their machines and OS X Lion.... because for many of us, they just don't! It isn't rocket science guys.... blithely telling us that downloading S/W updates from Apple doesn't help.... because they don't solve the problems! -
My wife and I have each and iPhone 4 and one iPad. We would like to have both our iCloud accounts on the iPad. For families we do not generally buy doubles of everything (apps, songs, movies tv shows, etc) and that includes iPads. But right now we are sharing and iCloud account and that is causing a lot of problems with calendars, contacts, reminders, imessanger, etc. it would be cool ( and more like a computer ) if we could have our separate accounts and our iPad 2 could hold both our iCloud accounts simultaneously. So it holds our personal information without affecting each other phones. I think this would solve family problems with one iTunes ID, many iCloud IDs, many iPhones but one iPad, laptop, computer, apple tv. Thank you.
Read http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
If you wish to share an Apple ID with family members then read: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/ -
The three finger swipe left and right does not seem to work
Hi
I have been trying to do the left and right three finger swipe that allows you to move between applications to no avail. It just keeps switching between dashboard and one app even if I have 5 apps open at the same time. Snow Leopard has this feature where all the apps opened are shown when you do the swipe and you can choose the one you want. I think this is better but it doesn't work.
Any help will be appreciated.
AntonioSuch spaces actually use very little extra memory relative to the apps you have open to occupy those spaces. I would go out on a limb and say it doesn't matter whether you have one space for every application or all on the same desktop.
The limitation will come from the applications and the data you are crunching on them.
(But that's just a personal view, haven't run into any limits on my ow 4GB Macbook Pro so far) -
having trouble downloading and launching trial version of captivate. Using a Windows 32bit system. When I try to launch -- get error message that says "the procedure entry point NormalizeString could not be located in the dynamic link library KERNEL32.dll"
Troubleshoot with install logs | CS5, CS5.5, CS6, CC
-
When I try to run a slideshow it acts like it is running but the screen is black with no pictures.
When I try to run a slideshow it acts like it is running but the screen is black with no pictures.
-
hi. I have the ipad 4 and have got a Vodaphone ( India) data sim, however it does not seems to work. The CS support at the gallery and the call center is lousy as they dont seem to know what they are upto. Although the sim is active i am unable to surf. The vodaphone number is
9168554687. Please assistSince this is a carrier issue, we are probably not going to be able to help you. You are paying for this service, so be assertive when you call customer service.
-
Copy and paste of an element does not seem to work in the web page design??
I have tried to copy and paste of an element BUT it does not seem to work in the web page design??
Hi;
The copy and paste keyboard commands in the app are controlled by Flash Player, sometimes there are issues with a browser/OS combination, make sure that Flash Player is up to date and if that doesn't help try another web browser.
Thanks,
Josh -
I am now using v3.6.8 and tried updating to v7.01 but it does not seem to work. Went to control panel to remove all the old versions but Firefox was not listed there although Thunderbird is there. Please advise asap, thanks
I recommend backing up your Firefox settings in case something goes wrong during the uninstall/reinstall process. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
In the Control Panel, Add/Remove programs, look for '''Mozilla Firefox'''. Make sure to save (do not delete) your personal settings when uninstalling.
If it isn't there, just try installing 3.6.23, which is the latest in the 3.6 family. You can download 3.6.23 here: http://www.mozilla.com/firefox/all-older
With respect to version 7.0.1, are you saying that the installation failed, or it seemed to work but it's nowhere to be found? -
I have just received a brand new iphone 4 in the mail. I have plugged it in using the apple wall charger for around 3 hours now and it does not seem to be doing anything. Tried to plug it into the computer, again no response. Trying to turn it on has not had any success either. Should I be concerned that the screen is blank and not showing a charging symbol?? Have I missed some vital step in set up??
Thanks for your help!!!!Try resetting the phone:
Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release.
Then, launch iTunes & connect your phone...what happens? -
if you go to a webpage with an opensearch link tag like "<link rel="search" type="application/opensearchdescription+xml...." FF3.x highlighted the small arrow left of the search box and you could add the search engine. this does not seem to work in FF4.
If a searchengine for example for the intranet, does not offer a plugin, just the opnesearch xml, how can one add it to the search engines in FF4?You do not get the blue glow on the search engine icon in Firefox 4, but you should still see the "Add ... site" entry in the menu if you click the search engines icon on the Navigation Toolbar.
-
Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?
Reboot the machine holding Command and r keys down, you'll boot into Lion Recovery Partition
In there will be Disk Utility, use that to select your Lion OS X Partition and Repair Permissions.
After that is done reboot the machine and see if you can log in.
If not repeat the above steps to get into Lion Recovery, get online and reinstall Lion again, it will overwrite the installed version and hopefully after that it wil work.
Reboot and try again.
If not follow my steps to create a Snow Leopard Data Recovery drive, then option boot from it and grab a copy of your files off the machine.
Then reinstall all your programs onto the external drive like setting up a new machine, then use Disk Utility to erase the entire internal boot drive (select the drive media on the far left, not the partiton slightly indented) format Option: GUID , 1 partition OS X Extended and then use Carbon Copy Cloner to clone the external to the newly formatted internal drive. Once that is finished reboot and disconnect the external drive.
Once you go that, boot into Snow Leopard and update to 10.6.8, use the AppStore and option click on Purchases and download Lion again and install.
Lots of work, but there is no Lion disks.
https://discussions.apple.com/message/16276201#16276201
Maybe you are looking for
-
Using Pages as the email Editor in Mail
I find OS X Mail very limited in spelling error correction and grammar correction. Is there any way to use Pages as my email editor or would it be faster to learn how to spell?
-
Tables for marketing attributes and relationship
Hi anyone! I'm creating InfoSets in CRM and I need the tables containing marketing attributes and relationship for BPs. Does anyone of you know which tables this data is stored in??? Regards Camilla
-
Hallo, PSE 13 hat Probleme bei mehreren Akionen hintereinander, stapeln von 2 Fotos, versehen mit Tags, löschen, verschieben in Kataloge, sowie beim integrieren von im Editor bearbeiteten Fotos im Organizer. es sind lange Wartezeiten nötig um die näc
-
Aperture - library management and external HDD question
Hi all. I have just graduated from a point and shoot to a Panasonic GH2 (love it), and have now begun using Aperture 3 rather than iPhoto on my early 2008 MB Pro to manage my photos going forwards. Of course, I've now discovered that Aperture is qu
-
Query tuning for search within blob content.
Hi, I ve got a query which searches across 3 tables. When I include a search condition : (CONTAINS(CF.blob_content,''{''||:P146_TEXT||''}'',1)>0 AND CF.REF_ID = CR.REF_ID) the query takes really long time to execute. Is there a way to reduce the exec