oracle10g

Oracle 10g: Extract data (select) from XML (CLOB Type)

折月煮酒 提交于 2019-12-03 16:23:16
问题 I'm new in Oracle and I've - maybe trivial - a problem in a select. (I'm using Oracle 10g Express Edition). I've a DB with a field CLOB: mytab.xml This column have an XML like this: <?xml version="1.0" encoding="iso-8859-1"?> <info> <id> 954 </id> <idboss> 954 </idboss> <name> Fausto </name> <sorname> Anonimo </sorname> <phone> 040000000 </phone> <fax> 040000001 </fax> </info> I'm trying to do a 'simple' select to get, for example, the value of 'fax' tag. But I've a bit of problem and I'm not

How does contains() in PL-SQL work?

末鹿安然 提交于 2019-12-03 16:16:57
问题 Have a lot of unnecessary results using contains() method in my query. Don't tell me to use like or something else. It is hardcoded and couldn't be changed. 回答1: Contains is used on text fields that have a 'CONTEXT Index', which indexes a text field for searching. The standard usage is like this (using the score operator to display what is returned from the contains clause based on the 1 in contains matching the 1 in score ): SELECT score(1), value FROM table_name WHERE CONTAINS(textField,

Installing Oracle 10 ODP.NET on Microsoft Windows 2008 Server 64bit

两盒软妹~` 提交于 2019-12-03 14:11:11
问题 I've tried to install " Oracle10g Release 2 ODAC (64-bit) 10.2.0.3 for Windows x64 " from: http://www.oracle.com/technology/software/tech/windows/odpnet/64-bit/index.html on Windows 2008 server 64bit , but it crushes right after i run the setup.exe with the following error: Problem signature: Problem Event Name: APPCRASH Application Name: javaw.exe Application Version: 5.0.40.5 Application Timestamp: 42a019e4 Fault Module Name: StackHash_5c81 Fault Module Version: 6.0.6001.18000 Fault Module

Error System.Data.OracleClient requires Oracle client software version 8.1.7 or greater when installs setup

不羁的心 提交于 2019-12-03 13:47:32
I have made a desktop app Setup that connects with remote Oracle 10g Database. When I install Setup on remote machine and run my application then I get following error: system.data.oracleclient requires oracle client software version 8.1.7 or greater It works well on my Development machine. The error message is pretty self-explanatory: your application needs the Oracle Client installed on the machine it's running on. Your development PC already has it. Make sure your target PC has it, too. Edit: The System.Data.OracleClient namespace is deprecated. Make sure you use the driver native to your

Sql: Optimizing BETWEEN clause

混江龙づ霸主 提交于 2019-12-03 13:11:49
问题 I wrote a statement that takes almost an hour to run so I am asking help so I can get to do this faster. So here we go: I am making an inner join of two tables : I have many time intervals represented by intervals and i want to get measure datas from measures only within those intervals. intervals : has two columns, one is the starting time, the other the ending time of the interval (number of rows = 1295) measures : has two columns, one with the measure, the other with the time the measure

PL/SQL: ORA-00942: table or view does not exist V$SQL

大城市里の小女人 提交于 2019-12-03 13:11:49
I have created a procedure and used the below statement inside that . select sql_id into v_sql_id from v_$sql where sql_text =v_sql; I am getting the following error PL/SQL: ORA-00942: table or view does not exist I have checked the synonym its owner is PUBLIC ,so it should run in this case ,but its not working . Another thing i can select sql_id from v_$sql where sql_text =v_sql; this in simple editor .Can anyone help me with this . Database dictionary related or system tables (v_$sql in this case) are owned by Oracle sys user and needs special privileges to access them. You need to login to

Oracle sequence caching

我与影子孤独终老i 提交于 2019-12-03 13:07:09
I am trying to implement a sequence in an Oracle database to act as a surrogate key creator for a table. For performance reasons, I want this sequence to be cached. I have read that there are potential pitfalls when using cached sequences since rollbacks and instance failures will result in missed values. This got me to thinking. Let's say I create a sequence with a cache size of 100. Then I make a 50 record insert to my table, with the sequence value as the primary surrogate key. After the commit, the current value of the sequence would not yet have been written to disk. Suppose I were to

Copying data between Oracle schemas using SQL

依然范特西╮ 提交于 2019-12-03 12:22:21
I'm trying to copy data from one Oracle schema ( CORE_DATA ) into another ( MY_DATA ) using an INSERT INTO (...) SQL statement. What would the SQL statement look like? Prefix your table names with the schema names when logged in as a user with access to both: insert into MY_DATA.table_name select * from CORE_DATA.table_name; Assuming that the tables are defined identically in both schemas, the above will copy all records from the table named table_name in CORE_DATA to the table named table_name in MY_DATA. funny_irony usage: COPY FROM [db] TO [db] [opt] [table] { ([cols]) } USING [sel] [db] :

Create Schema in oracle 10g express edition

纵然是瞬间 提交于 2019-12-03 12:18:40
I have installed oracle 10g express edition and I did not find the option to create schema.. Is there a option to create schema in oracle 10g express edition or else I have to install other oracle 10g..? To create schema which oracle 10g I have to install... what? You don't need to explicitly create schema, Oracle automatically creates a schema when you create a user (see CREATE USER documentation). If you really want, you can use CREATE SCHEMA statement and issue it through Oracle Express web interface or from SQL prompt. onkar The CREATE SCHEMA statement can include CREATE TABLE , CREATE

Oracle: Does a 10g oracle client work with an 11g server?

瘦欲@ 提交于 2019-12-03 12:12:44
问题 This is the reciprocal to this question. Currently, I am trying to use the instant client for Mac, version 10.2. There's no 11g version for Mac, as of now, based on this page(you have to click into each link to find out the actual version for each platform...lame). I tried connecting to our Oracle 11g server, and it just hangs there forever. Are they simply incompatible, or is something else fishy going on? 回答1: I would certainly say it should. The SQL*Net protocol it uses is essentially