Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Record and Raw types

 
   Database Forums (Home) -> Oracle RSS
Next:  replace value of ... variable  
Author Message
schw

External


Since: Apr 20, 2006
Posts: 11



(Msg. 1) Posted: Mon Apr 24, 2006 7:29 am
Post subject: Record and Raw types
Archived from groups: comp>databases>oracle>misc (more info?)

HI

I've got a simple structure like the following:

DECLARE

TYPE LOGON_PACKET IS RECORD(
szUsername CHAR(256),
szPwdEnc CHAR(256));


logonPKT LOGON_PACKET;

and when I call

ret_val := utl_tcp.write_raw(c,logonPKT);

I get type mismatch error because logonPKT is not a raw type. what
shall i do?

best regards,

 >> Stay informed about: Record and Raw types 
Back to top
Login to vote
Maxim Demenko

External


Since: Jul 13, 2005
Posts: 27



(Msg. 2) Posted: Mon Apr 24, 2006 5:18 pm
Post subject: Re: Record and Raw types [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

schw schrieb:
> HI
>
> I've got a simple structure like the following:
>
> DECLARE
>
> TYPE LOGON_PACKET IS RECORD(
> szUsername CHAR(256),
> szPwdEnc CHAR(256));
>
>
> logonPKT LOGON_PACKET;
>
> and when I call
>
> ret_val := utl_tcp.write_raw(c,logonPKT);
>
> I get type mismatch error because logonPKT is not a raw type. what
> shall i do?
>
> best regards,
>

If you are on 10g ,you have at least these possibilities to convert from
char/varchar2 to raw before you call utl_tcp.write_raw() :

http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_...n.htm#s
http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_....htm#st

write your own converting function using hextoraw()

Best regards

Maxim

 >> Stay informed about: Record and Raw types 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Find the first record, for every day - Hi ! I have a tricky problem, and i can't solve it. I have the following table T1, with the following fields and records: Date_ Status ---------- ------- 2005-12-01 2 2005-12-01 1 2005-12-17 1 2005-12-18 2 2005-12-18 10 I want to generate...

Copy a record from 1-table to another - Greetings... This is an extremely simplified version of the actual problem, just to make it easier. I have 2-tables: R(a) and S(a,b) I want to do the following (which doesn't work), and I don't know what I need to do to make it work. This is on a..

problems with picking up the latest record.. - Hi, I have a table in my database which has a date column...I need to pick up a resultset based on a where clause, identify the latest record based on the date column and then go ahead and pick up other values of the latest record. Here is the rough..

Help!! Trigger for delete a record after update - Hi I need to delete relative record from table B when the table A is updated. Table C is joing the tables A and B. Thanks Jsutha

does select with sample clause return variable record count - hi, Database version: Oracle Database 10.2.0.2.0 OS: RedHat Enterprise 4 I find select statement with sample clause return random count records, e.g. select count(*) from ADS_DENDOC; select count(*) from (select * from ADS_DENDOC sample(1)) a; 1st..
   Database Forums (Home) -> Oracle All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]