oracle

How do I create a manual link on a tree in Oracle APEX when Session State Protection is turned on?

Friends, I'm facing another challenge in APEX and I hope you can help. I have created a tree using the method described in John & Scott's superb book, "Pro Application Express" whereby the page link is stored in a table. Below is an example: go to a page passing some parameters f?p=&APP_ID.:3:&SESSION.::::P3_IDENTIFIER,P3_FAMILY_NA...

Oracle PL/SQL Import Japanese values CSV file

Hi. I am having problem with importing csv files containing values in japanese characters. When I do so it will display garbage when I query. my OS is japanese. My encoding for oracle NLS_LANG is JAPANESE_JAPAN.JA16SJISTILDE. I don't know what the problem is. When I try to import the very same file in some of my office mates' PC it just ...

Debug Oracle stored procedure using Toad

Hi guys, I have the following situation: I have a java code launching a stored procedure. What I want is to launch the java code, and when arriving into the stored procedure, to start debuggin it using Toad. Is this possible? Thanks alot. Best regards, Corneliu ...

PL SQL - Return SQLCODE as OUT parameter is accepted ?

Hi, I have a procedure that returns an OUT parameter. procedure foo (in_v IN INTEGER, out_v OUT integer) BEGIN ... EXCEPTION WHEN OTHERS THEN --sh*t happend out_v := SQLCODE; END That parameter will be 0 if everything goes OK, and <> 0 if something ugly happened. Now, if sh*t happens along the way, an exception will be th...

Latest JDeveloper version to support Oracle UIX Development

Hi, What is the latest version of JDeveloper which supports Oracle UIX development? Not a version which supports migration, but one which actually still has UIX development tools integrated? Thanks! ...

SQL Inner join on select statements

Hello, I am trying to make an inner join on a select statement like this: select * from (select* from bars where rownum <= 10 )as tab1 inner join (select * from bars where rownum <= 10 )as tab2 on tab1.close=tab2.close and I get the following error: ORA-00933 SQL command not properly ended Any help would be appreciated, thank you! ...

SQL Inner join on select statements

Hello, I am trying to make an inner join on a select statement like this: select * from (select* from bars where rownum <= 10 )as tab1 inner join (select * from bars where rownum <= 10 )as tab2 on tab1.close=tab2.close and I get the following error: ORA-00933 SQL command not properly ended Any help would be appreciated, thank you! ...

How do I select an XML schema registered with Oracle?

How do I select an XML schema previously registered with Oracle? For example, if I've registered a schema like so: DBMS_XMLSCHEMA.registerSchema( SCHEMAURL => 'http://test.com/my-schema.xsd', SCHEMADOC => '...the xsd..., ... ); I would like to be able to get that schema back, ideally something in the vain of: select s.sc...

subsonic 3 oracle

I have a couple of question's regarding the following project. *Scott, Recently some developers have teamed-up to offer Oracle support (using Oracle's ODP.NET) for Subsonic 3.x, using the T4 Visual Studio template database provider system. Please search Github.com for Oracle/Subsonic, or my link, http://github.com/mabraham1...

Sql = how to calculate the return vector with a time series of prices?

Hello, I have a table which has columns of price and date, ordered by the ascending dates. I need to calculate from this a return vector where return = price ( i) / price ( i- 1). The time is not time based, which means that one record can be at 9h34, the next at 9h35, then 9h40 etc... I have found the following topic: SQL Syntax for ca...

ORACLE - tables

Hi, After entering code to create a new table in SQL ORACLE, would the changes be saved if I was to log out of the SQL Session? ...

Oracle PLSQL - Declare a cursor on a non-existing table

Hi, I want to declare a cursor on a table that does not exist. Of course, my procedure doesnt compile. This table is a temporary table, and is created by a pre process. It will exist on runtime, but at compile time its another story. For my select / updates an other DML operations, I've used EXECUTE IMMEDIATE 'operation from tmp_tab...

SQL argument limit in Oracle

It appears that there is a limit of 1000 arguments in an Oracle SQL. I ran into this when generating queries such as.... select * from orders where user_id IN(large list of ids over 1000) My workaround is to create a temporary table, insert the user ids into that first instead of issuing a query via JDBC that has a giant list of para...

what is wrong with this oracle query?

SELECT * FROM (SELECT ROWNUM rnum, query.* FROM (WITH myQuery AS( SELECT column_b FROM table_a a WHERE a.column_a = 1234) SELECT b.column_e AS some_column FROM table_b b, table_c c, table_a a ...

Oracle performance via SQLDeveloper vs application

I am trying to understand the performance of a query that I've written in Oracle. At this time I only have access to SQLDeveloper and its execution timer. I can run SHOW PLAN but cannot use the auto trace function. The query that I've written runs in about 1.8 seconds when I press "execute query" (F9) in SQLDeveloper. I know that this i...

oracle spatial fun exercises?

please help me connect spatials to oracle 10g XE where can i find fun things to do with oracle spatial? ...

how to get TIMESTAMP column from Oracle DB into C++ (MFC or WIN32)?

Hi, I need to get value of column (TIMESTAMP) from oracle DB into C++. Then which dataype i should map to access database field (In MFC or WinAPI any) or what should in do to do this in proper manner. Thanks, Anuj Seharavat edit Additional info: I need to fetch data from database. I am using CRecordset class and function RFX_Date i...

ASP.NET MVC Authorization without SQL Server

I want to use standard authorization with forms. But all tables must be saved not in mdb file which used by default, but in Oracle. Would you please provide me information how to do this? Thanks! ...

Slow in filling .NET DataSet from Oracle 9i

Hi, This is a problem that my friend asked over the phone. The C# 3.5 program he has written is filling a Dataset from a Patient Master table which has 350,000 records. It uses the Microsoft ADO.NET driver for Oracle. The ExecuteQuery method takes over 30 seconds to fill the dataset. However, the same query (fetching about 20K records) ...

Telling if a transaction has uncommitted updates

In our application, there's a database update that is committed only after a consequent update is being executed (both using the same transaction, of course). However, we've discovered a rare flow in which the user exits the application before the second update, causing the first to be discarded. I'm looking for a way to recognize this u...