What is the DB2 equivalent of DUMP function in Oracle? - oracle

The dump function in Oracle displays the character set and bitwise representation of how data is stored.
Does anybody know if there is an equivalent command in DB2 please? Thank you.

Using the following query and the functions below up might be able to come up with a UDF to do what you need.
SELECT NAME, VALUE
FROM SYSIBMADM.DBCFG
where NAME in ('codepage','codeset','collate_info')
BITAND
BITOR
BITXOR
BITNOT
BITANDNOT

Related

OPENROWSET for Oracle

Could anybody help me translate this query from T-SQL to PLSQL, please?
I am using SQL Developer.
UPDATE schema.Table SET PICTURES =(SELECT * FROM OPENROWSET (BULK '\\shared folder\Picture.jpg', SINGLE_BLOB) a) WHERE (personID = 1111)
Thank you!
It looks to me like you are trying to apply a single image to a single person table row by selecting from an image file external to the database.
If my understanding is correct then I suggest you investigate Oracle EXTERNAL TABLE, DIRECTORY object and DBMS_LOB package.
Using some variant of these will certainly provide the solution you need.

String Aggregation that works in both oracle and postgresql

I was originally using LISTAGG to do the union of strings in oracle.
Searching for PostgreSQL I get: string_agg
I don't know if there is any way to have a function that works in both applications.
I have to do it from the query since I can't create functions
thanks for your help
Thank you all for the help, in the end I did it through functions and sub-query

Ireport Using Oracle Function

I have a oracle function(SOS_NUMBER_TO_WORD_JR_F).it has INTEGER parameter and return type is STRING. Now i want call this function from Ireport variable or text field. I did not kwnow how to do it? Any one help my problem?
Can you call it in your query?
SELECT SOS_NUMBER_TO_WORD_JR_F($P{the_integer_parameter}) AS RETURNS_A_WORD
FROM MY_TABLE
If that doesn't work, provide us with a little more information about how you normally call the function.

How to export the user's data and restrict table rownum?

I want export data something like this.
exp xxx/xxx file=d:\xxx.dmp owner=xxx query=\"where rownum < 1000\"
But I get an error "QUERY parameter is only use in table mode"
Oracle version 10g
As #Thilo says, with exp you can only user the query parameter in table mode. If you're able to use the newer data pump functionality, via the expdp command, you can apply a similar query parameter to the whole export.
#Thilo is right, you can export a single table or a SUBSET of a single table
I also recommend reading Tom's advice in regards to using parfile

Data Types in oracle-Not sure to decide on which to use

For Sybase,I use the following datatypes.
Can anyone suggest me the oracle equivalent for the same
int8,int16,int32, char name[233],char name1,char name[256],ScaledDecimal64_t
Please let me know the oracle equivalent for the above datatype which has been defined in the C(generated code for sybase)
Would the Sybase to Oracle datatype mappiong grid on this page help?
http://www.indiana.edu/~dss/Services/DataWarehouse/Oracle/Sybase/conversion.html

Resources