oracle11gr2

Oracle Text Contains and technical content

无人久伴 提交于 2019-12-24 10:08:15
问题 I'am searching for the technical word "AN-XYZ99". So I use SELECT * FROM foo WHERE CONTAINS(bar, 'AN{-}XYZ99') > 0 but I get also results like "FO-XYZ99" or "BAR-XYZ99". What can I do to ensure the expected result? I used BEGIN CTX_DDL.CREATE_PREFERENCE('FOO','BASIC_LEXER'); CTX_DDL.SET_ATTRIBUTE('FOO', 'ALTERNATE_SPELLING', 'GERMAN'); CTX_DDL.SET_ATTRIBUTE('FOO', 'COMPOSITE', 'GERMAN'); CTX_DDL.SET_ATTRIBUTE('FOO', 'MIXED_CASE', 'NO'); END; Sample data from column "bar" (VARCHAR2(4000)):

grant SELECT access to v$session to other users

风格不统一 提交于 2019-12-24 07:58:25
问题 I want to grant SELECT access to v$session to other users in an Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production but when I run this query: SELECT owner, object_type FROM dba_objects WHERE object_name = 'V$SESSION'; I got this error: 00942. 00000 - "table or view does not exist" 回答1: Oracle v$ views are named V_$VIEWNAME and they have synonyms in format V$VIEWNAME and you can’t give privilege on a synonym. If you want to give permission to a V$ view you must give

Path Location:Oracle.Driver (Oracle.DataAccess.dll) for Oracle 11g Standard Edition Release 2

。_饼干妹妹 提交于 2019-12-24 00:34:04
问题 I have installed Oracle 11g Standard Edition Release 2. I am working with nhibernate 2.2. I already spent lots of time but I could not find the location of Oracle Driver dll file (Oracle.DataAccess.dll) in the installed file.Please Help me. Thanks in advance. Satadip 回答1: Since 11.2 Oracle Data Provider for .NET ships with two sets of binaries The Oracle.DataAccess.dll assembly is installed to the following locations: .NET Framework 2.0: ORACLE_BASE\ORACLE_HOME\odp.net\bin\2.x directory .NET

Direct-Path INSERT Oracle

元气小坏坏 提交于 2019-12-21 21:25:14
问题 I am reading about Direct-Path INSERT in oracle documentation Loading Tables It is written that : During direct-path INSERT operations, the database appends the inserted data after existing data in the table. Data is written directly into datafiles, bypassing the buffer cache. Free space in the table is not reused, and referential integrity constraints are ignored . Direct-path INSERT can perform significantly better than conventional insert. Can anyone explain me ,how referential integrity

How to install Procedural Option in Oracle 11gr2

落爺英雄遲暮 提交于 2019-12-19 10:21:44
问题 I've been trying to create PL/SQL packages and running procedures on a local installation of Oracle 11gR2 on my computer, and I kept getting ORA-00900 error. Based on this article, it seems like Procedural Option has not been not installed. This is the output of sqlplus when I logged in: C:\Users\NgCH>sqlplus SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 14 13:11:34 2013 Copyright (c) 1982, 2010, Oracle. All rights reserved. Enter user-name: system@orcl Enter password: Connected to:

Setting a value for LIMIT while using bulk collect

痞子三分冷 提交于 2019-12-17 19:36:49
问题 I wanted to know if we have any technique by which we can calculate the value which needed to be set for a LIMIT clause of bulk collect operation. For example below, lets say our cursor has 10 Million records..What is the value which we can set for LIMIT clause to have optimum performance. Is there any way we can calculate it. decalre cursor c_emp is <some select query> var <variable> ; begin open c_emp; loop fetch c_emp bulk collect into var limit 2; exit when c_emp%NOTFOUND; end loop; close

passing table and column name dynamically using bind variables

喜欢而已 提交于 2019-12-17 13:26:32
问题 Is there a way to pass column and table names dynamically to a query using bind variables? This could be done by using a simple concatenation operator || , but I would like a different approach by which this can be achieved. EDIT OPEN abc_cur FOR 'Select :column_name from :table_name' USING column_name,table_name; In this example I am passing column_name as empno,ename and table_name as emp But this approach is not working for me. Is it possible to have a different approach other that the

Show concatenated values in SQL Query

走远了吗. 提交于 2019-12-14 02:11:49
问题 I want to join my first sql query with table Types showed below by id_pr value.ID_PR values are repeated. I want to show all values from ident_st column concatenated with comma separator for same id_pr and rodz_st values. For example: Show all ident_st values for rodz_st='DZE' and id_pr=13. first query: SELECT NAME, NO FROM ORDERS o LEFT JOIN TYPES t ON t.ID_ZM = o.ID_PR table Orders: ID ID_ZM NAME NO ---------- ---------- ------- -------- 1 12 Dee 333 2 13 Rods 111 table Types: ID ID_PR RODZ

FRM-50026 date must be entered in a format like DD-MON-YYYY

耗尽温柔 提交于 2019-12-13 05:26:49
问题 I am creating form in which user select "CSV" File and import "CSV" Data into oracle forms Data Block.I have date column when I import date column values into data block then getting following error "FRM-50026 date must be entered in a format like DD-MON-YYYY" My Date Column format in "CSV" File: My Form: Code: DECLARE application Client_OLE2.Obj_Type; workbooks Client_OLE2.Obj_Type; workbook Client_OLE2.Obj_Type; worksheets Client_OLE2.Obj_Type; worksheet Client_OLE2.Obj_Type; worksheet2

Efficient approach to populate the temp table

谁说胖子不能爱 提交于 2019-12-13 00:08:48
问题 Default_accounts ======================== p_type varchar2 t_type varchar2 A varchar2 B varchar2 C varchar2 D varchar2 ========================= p_type and t_type is the primary key of the table p_type t_type A B C D ============================ apple sell Y N N Y banana buy N N N Y orange sell Y N N N mango buy Y Y N Y papaya buy Y N N Y apple buy Y N N Y banana sell Y Y Y Y ============================ Accounts_Exceptions ============================= acc_excep_id number --sequence (Primary