Questions tagged [oracle-11g-r2]

Oracle Database 11g Release 2. Please also tag oracle for search purposes.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

See Max Simultaneous Sessions Per User

In an effort to set a reasonable sessions_per_user profile setting for shared database accounts or other non-unique account (ie. an account an application uses to log into the database for all app ...
0
votes
1answer
20 views

Query to show whether a record is appeared in the previous date or not

I have a table with below structure and sample data: create table TEST_ONE ( purchase_date DATE, customer_id NUMBER ) | purchase_date | customer_id ---------------------------------- |...
0
votes
3answers
37 views

Does using "qb_name()" hint (query block name) in a query have significant effect on performance?

I've just become familiar with the hint "qb_name" (query block name) in Oracle and below you can see an example of using this hint in a query: select /*+ qb_name(main)...
1
vote
1answer
54 views

Tuple comparison with ORACLE and SQLSERVER

I am working on cursor based pagination using multiple columns. I need to make a tuple comparison since date might not be a unique value. When I am using MySQL and PostgreSQL, I can do it like this. ...
0
votes
2answers
32 views

How to Escape dot(.) In a substitution variable

I have a variable called ERROR_DETAIL and inside my file file.sql I have this line: SELECT 'error detail : &ERROR_DETAIL ' FROM DUAL; Once executed sqlplus complains with the following error ...
0
votes
0answers
16 views

how to migrate on-premise oracle databae to oracle cloud?

I want to migrate my on-premise oracle 11g database to oracle cloud(11g) database. -my system is windows 64bit. -i have already created free tire account in oracle cloud and inside db system i have ...
0
votes
1answer
25 views

Index not used in a partitioned Oracle table

I have a table partitioned by list create table ICT_ENCOURS_BRUT ( code_exercice VARCHAR2(4), CODE_PRODUIT VARCHAR2(2), ....... ) partition by list (CODE_EXERCICE) ( ...
0
votes
0answers
18 views

How to find and delete partial duplicates in Oracle

I'm deleting duplicate values in an Oracle database using this: DELETE FROM results a WHERE a.ROWID IN (SELECT ROWID FROM (SELECT ROWID, ROW_NUMBER() OVER (PARTITION BY sample_id, ...
0
votes
0answers
22 views

Scheduled job not present on database, but visible from dba_scheduler_job_log

I'm seeing this error in the alert log (sorry, it's in italian!): *** 2021-09-14 23:50:17.891 *** SESSION ID:(249.6897) 2021-09-14 23:50:17.891 *** CLIENT ID:() 2021-09-14 23:50:17.891 *** SERVICE ...
0
votes
1answer
40 views

Oracle 11gR2 (11.2.0.4.0) - Drop and Remove Datafiles

We have a database of 2000 users. We will drop all remaining schemas, leaving only 2 end users, excluding Internal (Oracle maintained) users. After this operation, there will be a very high reduction ...
0
votes
2answers
56 views

Inserting data into the VIEW , result in data being inserted into the original table, why is this happening?

I have a table as you can see below: create table table_test (col_id number(1)) The table has below data: col_id ------ 1 2 3 I create a view based on this table: create view v_table_test as ...
0
votes
3answers
96 views

Oracle database won't start, ORA-03113

Running Oracle 11.2.0.4.0 on CentOS and discovered the hard drive filled up, giving error in alert log: ORA-19815: WARNING: db_recovery_file_dest_size of 64424509440 bytes is 99.98% used, and has ...
0
votes
1answer
29 views

When to perform which type of incomplete recovery?

This is purely learning purpose, that which incomplete recovery type is use in which condition? And DBA is bound to choose one or can choose anyone of following Incomplete recovery type? Scn-based ...
0
votes
1answer
33 views

Trouble querying the correct info from gv$encryption_wallet

I'm trying to get the wallet status for the current instance of an Oracle 11g 2 node RAC DB (but ideally all RDBMS versions). The following command returns values for both nodes instead of one: SQL>...
0
votes
1answer
41 views

Why doesn't /*+ NO_INDEX*/ hint , affect the "execution plan"?

I have a sample table with below structure : create table mi_dimcustomer (customer_num number(10), <other columns> <data types>) And there is a unique index on column customer_num. I'...
0
votes
1answer
41 views

Facing error "cannot fetch plan for SQL_ID" while trying to capture the execution plan

I'm trying to capture the execution plan of my query on PL/SQL developer as you can see below : select * from vmi_dimcustomer t1 inner join vmi_factcustomer t2 on t1.customer_num = t2....
0
votes
1answer
77 views

The correct way for generating "Execution plan" for a PL-SQL statement in Oracle

I'm studying about Explain plan and Execution plan in Oracle and according to what I've read so far , The explained plan can differ from the actual plan used during statement execution. So I think ...
2
votes
2answers
130 views

weird behaviour of NVL(<Column_name>,Sequence.nextval) when the colummn has data?

I've created a sequence like this : CREATE SEQUENCE seq_test2 MINVALUE 0 MAXVALUE 999999999999999999999999999 START WITH 0 INCREMENT BY 1; Both of these two queries show me the number 0: ...
-2
votes
1answer
49 views

How to auto run oracle stored procedure [duplicate]

Is there any possibility to auto run procedure after a specific time/date? For example I want to auto run this stored procedure after 2 days: CREATE OR REPLACE PROCEDURE deleteresetlinks AS BEGIN ...
0
votes
1answer
113 views

Oracle 11g TDE wallet autologin

I have setup Oracle TDE for my 11.2.0.4 database. I created the wallet. I created the autologin wallet and everything looked good. {ORACLE_HOME}/bin/orapki wallet create -wallet cwallet.sso -...
0
votes
1answer
19 views

Oracle 11g Encryption

Can somebody please tell me how to encrypt an existing tablespace in 11g? The wallet has been setup and the sqlnet.ora points to it. SQL> select STATUS FROM V$ENCRYPTION_WALLET; STATUS -----------...
0
votes
0answers
84 views

Advanced Queues fail with "Table stats versioning encountered error(942)"

I've been trying to get DBMS_CHANGE_NOTIFICATION to work on an Oracle XE 11.2 DB in docker. I feel like I've followed the documentation to the letter, but I still can't get it to work. Here is what I'...
2
votes
3answers
890 views

How to solve error "ORA:01-006 :bind variable does not exist" when working with bind variables?

I have a table with below structure and data : create table TEST_TABLE ( item_number NUMBER, item_name VARCHAR2(50), item_col VARCHAR2(50), item_pol VARCHAR2(50) ) Sample data: ...
0
votes
0answers
25 views

Updating status on delete from another table (Oracle SQL)

How can I merge these two queries? delete from login where email='test@test.com' and date_created > created_date + interval '1' day; update staff set status_id=1 where staff.email=login.email;
0
votes
1answer
30 views

Fetch all rows and leave column value empty if no equality match

I have a query where I want to fetch all rows where the value in column x is between 400-600. Including in this I want a matching column value from antoher table. But I want all 200 rows between 400 ...
1
vote
2answers
37 views

auto set value of a specific column after 24 hours and to delete record after one week: Oracle SQL

Here is my table: create table passwordResetLink( link_id number(5) primary key, link_date timestamp(0) default sysdate NOT NULL, isExpired number(2) email varchar2(110) UNIQUE NOT NULL, linkUsed ...
0
votes
0answers
32 views

How can I keep ASM groups in Oracle RMAN Duplicate?

Oracle 11.2.0.4 Whenever I issue a DUPLICATE on a Oracle backup, it always places all the files in to the default ASM diskgroup. I usually have the same ASM diskgroup structure at source and ...
0
votes
0answers
18 views

Oracle 11gR2 => Oracle Data Pump (expdp, impdp) => can backup be safely taken during runtime

until now I create a daily Logical backup backup of my Oracle 11gR2 Database at midnight while the database is running but the client application is in an idle state so that no queries are executed on ...
0
votes
0answers
30 views

RMAN Catalog requirement with DataGuard

If you have an 11g or 19c Oracle Standby DB setup using dataguard must you use an RMAN catalog when backing it up? I ask, because it was a requirement in much older versions of Oracle (e.g. 9i) but I ...
0
votes
1answer
110 views

Oracle 11g - Decreasing Big Table Size

I want to reduce the size of a table. I thought if I could do this with export / import, but when I check it with the ESTIMATE_ONLY option, it doesn't seem to work. I have no chance of using ...
0
votes
0answers
90 views

import .dmp in Toad : Invalid format of Import utility name Verify that ORACLE_HOME is properly set

When I tried to import a DMP file using TOAD (9.0.1) Import Utility Wizard I get an error Invalid format of Import utility name Verify that ORACLE_HOME is properly set Any suggestions please? I ...
0
votes
0answers
10 views

Backing up an Oracle Standby database

I have a quick rman Backup question. If I would like to run RMAN backups on my (dataguarded) 11g physical standby database, what status should that standby db be in? At the moment the standby is in ...
0
votes
0answers
62 views

Why Oracle AWR report's I/O stats are different from the I/O monitoring data captured on operating system?

I am using Oracle 11.2 on Redhat 6.8, and working on some I/O issue. I got a AWR report of Oracle DB for a certain day, and I found that "Read per Second" in "IO Profile" section ...
0
votes
0answers
56 views

Oracle impdp INCLUDE parameter

I have an script that uses IMPDP over a database link (no expdp used) to import some data from our PROD environment to a DEV environment. Some tables are rather gigantic and partitioned, and we want ...
1
vote
1answer
99 views

The "unexpected greater" PGA size allocated in rman channel

Environment: RHEL 6.9、 Oracle 11.2.0.4 When we running some rman backup/restore jobs, we found the actual PGA size could greatly exceed the predefined limit value about PGA: Why the following ...
0
votes
0answers
153 views

Oracle XE 11.2.0 data pump expdb works on but impdb doesn't on Windows 10

New to Oracle DB administration here. I have a fresh localhost installation of Oracle XE 11.2.0 (x64 installation from here) on my computer using Windows 10 64-bit. I am able to connect to the DB ...
0
votes
1answer
31 views

Better way of handling incorrect date format in a column with "char(10)" data type / TRY_CONVERT equivalent in PLSQL

I have a source table with below structure: create table customer_info (customer_num number, birth_date char(10)) Unfortunately the birth_date column data type is char(10) instead of date. ...
1
vote
0answers
28 views

Naming a datafile with spaces in the name

I would like to know if there could be a problem when naming a datafile with spaces in the name, I have an Oracle 11gR2 database, using ASM as storage, a datafile was created, belonging to an ...
0
votes
1answer
33 views

Why is the schema name necessary here and how to compile without it

I'm working on an Oracle Forms 11g application linked with an Oracle 18c database and I stumbled upon a strange error when compiling my form. Here's a snippet to illustrate the problem (I changed the ...
1
vote
1answer
212 views

Oracle Enterprise Manager 11g Database Control - Agent Unreachable

Single instance DB. I can login to Oracle Enterprise Manger (OEM). However, on the Home Page it says: Status - Agent Unreachable Most tasks such as checking RMAN status, adding datafiles, etc. ...
1
vote
2answers
240 views

Query to find all dates between two specified dates using plsql

I have a table with below structure create table test_table ( customer_num NUMBER, card_number char(2), card_issue_date DATE, card_expire_date DATE ) Example data is: ...
1
vote
1answer
66 views

Query to find the "Number of days" a customer has an active card between a specified interval

I have a table with below structure : create table test_table ( customer_num NUMBER, card_number char(2), card_issue_date DATE, card_expire_date DATE ) Example data is: ...
0
votes
1answer
106 views

Oracle 11gR2 - Dynamic Registration

Database version: Oracle 11gR2 We want to use DYNAMIC_REGISTRATION_LISTENER parameter with off option. Our listener.ora file like this: LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (...
0
votes
0answers
49 views

Login oracle database with Microsoft Active Directory error

I have two machines, one (let's call it dbmachine) has the database and client installed of oracle 11g release 2, the other one is the domain controller (let's call it dcmachine) and has the client ...
2
votes
3answers
282 views

If the maximum current value of an ID generated by a sequence is N, does that guarantee that all future rows will have index > N?

I'm debugging some legacy code and have found what might be a flaw in how it interacts with the database. A simplified version of it is as follows: TableA is acting as a queue. It has data inserted ...
0
votes
1answer
419 views

how to get the difference between 2 tables in 2 different schema's in Oracle? [duplicate]

I am using Oracle 11G. I have a table called Tickets in the schema called 'tickets1" I have the same table structure in another schema called 'tickets2' I want to find out What data is the same ...
0
votes
1answer
48 views

Does ' /*+parallel(<Specific Table >,4)*/ ' have better impact on query performance in comparison with simple parallel hint '/*+parallel(4)*/'?

I have three tables with below structure: create table customer_info (customer_num number, customer_firstName varchar2(100), customer_lastName varchar2(100), branch_code varchar2(...
0
votes
1answer
208 views

Same user cannot 'see' view on remote oracle database athough dblink is valid

I am running an impdp job that I have extracted the DDL from to determine why the job hangs. It consistently stops on the first object created using a dblink. I am running the impdp job as system as ...
0
votes
0answers
37 views

Can't connect Oracle 11g2 Database to Job Scheduler Agent on client/application server

Running 11g2 database on one Linux server and installed Oracle client and job scheduler agent on separate Linux (application) server sitting next to it. The connection betweeen them worked fine for ...
0
votes
1answer
826 views

ORA-31626: job does not exist during schema export

I'm exporting schema with following command - expdp system/system@xxx.xxx.xxx.xxx:1521/orcl schemas=schema-name directory=test_dir dumpfile=Schema.dmp logfile=SchemaLog.log but it results into ...

1
2 3 4 5
28