oracle9i

How to find size of a data type in pl/sql (oracle 9i)?

hi, I want to find the size of any data type in pl/sql,for eg DECLARE x boolean; I want to find size of like X,is there any function like (sizeof() in C) or any how i can find it.Please let me know! ...

Boolean data type size and want to print its value?

I want to know size of data type boolean , i used VSIZE() function but it is not working for boolean and Want to print and store boolean value into table. Please let me know how oracle store boolean value ,is there any other way to see data type and value for boolean variable. Atleast tell me size of boolean i got this error when I ...

SQL query giving "not a GROUP BY expression" error

SELECT SUM(a.Clicks) AS Clicks, SUM(b.NoOfUsers) Users, c.WEEK_NUM, b2.ALL_TASKS FROM (SELECT SUM(CLICK_CNT) AS Clicks, TO_CHAR(RQST_DT,'YYYY-MM-DD') AS DATEE FROM PER_DAY_USAGE GROUP BY RQST_DT) a, (SELECT TO_CHAR(RQST_DT,'YYYY-MM-DD') AS DATEEE, WEEK_NUM FROM TIMEDIM) c, (SELECT NoOfUsers, accDate FROM...

DBMS_OUTPUT.NEW_LINE and DBMS_OUTPUT.NEW_LINE() difference?

What is the difference between these two statements? dbms_output.new_line(); // with no parameters. dbms_output.new_line; // with no parameters,no round brackets If there is function overloading,even for that close and open brackets are required after function name. ...

Privileges for a Oracle 9i statistics job

We want to move our automated statistics gathering from an external script into Oracle 9i's job scheduler. It's a very simple job, and the code basically looks like this: DBMS_JOB.SUBMIT( JOB => <output variable>, WHAT => 'DBMS_STATS.GATHER_DATABASE_STATS( cascade => TRUE, options => ''GATHER AUTO'');', NEXT_DA...

DOT(.) after Ampersand (host variable)& considering as a part of variable name?

Hi ALL, I know heading is not so clear.This is the picture I am using &a it is considering it as $a. ,in the output &a and &a. is giving the same output. and why single .(DOT) after &a is giving no error but if we put any character, operator or wild characters after &a gives error. This is the code. BEGIN FOr i in &&a...3 LOOP ...

Upper Bound in FOR loop does not get altered in loop,Why?

Hi ALL, I am trying to change the value of upper bound in For loop ,but the Loop is running till the upper bound which was defined in the starting. According to logic loop should go infinite, since value of v_num is always one ahead of i,But loop is executing three time.Please explain This is the code DECLARE v_num number:=3; ...

Better way to set unix permissions when deploying war file

We have a vendor application where we download their updates and deploy a war file. We are deploying the war file on a unix application server running oracle application server 9i. I believe when we deploy the war file, we remove the previous install and then deploy the new war file. When we deploy the war file, sometimes we have to m...

Database design problem: intermediate table between 2 tables may end up with too many results.

I have to design a database to handle forms. Basically, a form needs to go through (exactly) 7 people, one by one. Each person can either agree or decline a form. If one declines, the chain stops and the following people don't even get notified that there is a form. Right now I have thought of those 3 tables: FORM, PERSON, and RESPON...

My Oracle 9i package won't compile, says that a user-defined function is out of scope... but it isn't...

I have an Oracle package which contains user-defined functions and procedures, including two user-defined functions which are called from SELECT and UPDATE statements. The functions in question are defined before the procedures that call them. This piece of code compiles and works fine on Oracle 10g but won't compile on 9i. The code s...

how to perform operations on oracle9i b-tree index??

Hi, i am using oracle9i. i have lot of questions to ask i want to create b-tree index on a table in the database. How can i do that?? are these index same as that of written on wikipedia b-tree page?? i want to perform b-tree operations(like insertion and deletion of entries) on these index b-trees.. can i do that?? please, help m...

how query a cube olap using a java Application

Hello, I've a cube olap created with oracle9i, and I want to do some queries on this cube using a java application, but the problem is: how can I connect the java application with the cube olap. thanks for your help ...

Greatest not null column

I need to update a row with a formula based on the largest value of two DATETIME columns. I would normally do this: GREATEST(date_one, date_two) However, both columns are allowed to be NULL. I need the greatest date even when the other is NULL (of course, I expect NULL when both are NULL) and GREATEST() returns NULL when one of the co...

Oracle: Difference in execution plans between databases

Hello, I am comparing queries my development and production database. They are both Oracle 9i, but almost every single query has a completely different execution plan depending on the database. All tables/indexes are the same, but the dev database has about 1/10th the rows for each table. On production, the query execution plan it pi...

Inline functions in pl/sql?

I have 5 lines of code as function which is being called 100000 times is there a way to make the function inline so that I don't experienced a call overhead in PL/SQL. Oracle 9i is the version I am using. Update: The In lining of code does not have much improvement but I gained 2 seconds though. Now I am looking for efficient version of...

UTL_FILE.FOPEN() procedure not accepting path for directory ?

I am trying to write in a file stored in c:\ drive named vin1.txt and getting this error .Please suggest! > ERROR at line 1: ORA-29280: invalid > directory path ORA-06512: at > "SYS.UTL_FILE", line 18 ORA-06512: at > "SYS.UTL_FILE", line 424 ORA-06512: at > "SCOTT.SAL_STATUS", line 12 ORA-06512: > at line 1 HERE is the code create ...

php with oracle 9i

Hi everyone, I am new in php with oracle. Trying to connect with oracle by php. But have no success. I have installed xammp since i had to work with mysql. And now i have to use oracle 9i (9.2.0.6). Now if i use --> oci_connect(username, password, servicename) -- It says undefined function oci_connect(); Can any one tell how to configur...

Trying to make a job to be executed after each 1 minute,but its not working?

I have made this job,that should be executed in an interval of 1 minute,but it's not working. When I use execute dbms_job.run(2); it gets executed. printe is a procedure Please suggest! BEGIN DBMS_JOB.SUBMIT ( job =>:job_no, WHAT=>'printe;',--Procedure next_date=>sysdate+1/24*60, ...

Where is all_nested_table_cols in 9i?

Oracle 9i has nested tables, however it doesn't have the all_nested_table_cols sysview (like 10g and 11g) which lets me see what the columns are for these nested tables. How can I find this information on a 9i database? ...

Exception while calling stored procedure :Bigger type length than Maximum

HI I am getting this exception when I am calling any stored procedure from my J2EE app. Exception while calling stored procedure :Bigger type length than Maximum I am having Oracle 9.1.0.7, JDK1.4 and using ojdbc14.jar running on Weblogic 8.1 Please advise what could be the root cause ? Below is the manifest of my ojdbc14.jar ...