Quantcast
Channel: Question and Answer » oracle
Browsing all 717 articles
Browse latest View live

How to correct this oracle error?

This query SELECT praogrupos0_.ID_GRUPO_SEDE "ID1_209_", praogrupos0_.ID_EJERCICIO "ID6_209_", praogrupos0_.ID_INSTITUCION_LIQUIDADORA "ID7_209_", praogrupos0_.ID_PERIODO "ID8_209_",...

View Article


Retrieving the top row of data

I have very limited SQL knowledge and need to report on the top most current row of data within a table. The table holds Effective Date, Information and a Renewal Date. select DATA_KEY_ID,...

View Article


Image may be NSFW.
Clik here to view.

what is the query to display below output in oracle. [closed]

select * from (select year,sum(sales) from yqs group by year);

View Article

How to find the number of rows changed by an UPDATE statement in Oracle?

Imagine the following table: id | name | family ---+------+-------- 0 | John | Smith 1 | Mary | Winters 2 | John | Doe and now the following statement: UPDATE t SET name = 'John' WHERE id = 0; This...

View Article

ORA-01031: insufficient privileges while connecting to standby

I configured standby database and it worked for a while but now I noticed that redo logs thread on standby much less that on the primary. After researching alert log and trace files, I figured out that...

View Article


Oracle's DRCP not turning to ACTIVE even after...

Recently we received a report from DBA warning us about the amount of connections from one of our applications written in PHP using ZendFramework 1. Looking for the solution, we came up testing in a...

View Article

Oracle automatically unmount

I have a weird issue in my Oracle database, after 10 – 15 minutes of not using it (Not performing any query, insert on SQL Developer tool) then it will say ORA-27101: shared memory realm does not exist...

View Article

how to write code for logon/logoff triggers in oracle?

I have written the code for a logon/logoff triggers. Logon is working but the logoff trigger is created with an error. Please give some suggestions. Logging table: create table logon_off_audit( user_id...

View Article


Using exception with raise_application_error

I’m developing with Oracle 11g. How can I use a named exception in RAISE_APPLICATION_ERROR like this: DECLARE my_fault EXCEPTION; PRAGMA EXCEPTION_INIT (my_fault, -20000); BEGIN...

View Article


Result on execution of any SQL is number 2

After successful execution of any sql in oracle sql command line it shows 2 like i want to see the table or description of any table it show 2 instead of showing the table. SQL> select * from dual 2...

View Article

Grouping a sequence into ranges

I have 50000 students records in different exam centers having different subjects, in oracle table like this: Center_Code Roll_No PaperCode 10050 1 711 10050 2 711 10050 3 711 10050 4 711 10050 10 711...

View Article

Oracle Wallet Error in Red Hat High Availability Resource

Environment: Running Red Hat 7.2, using Pacemaker 1.1.13-10.el7_2.2 and Corosync 2.3.4-7.el7_2.1 to implement cluster failover of an Oracle 12c Enterprise Edition Release 12.1.0.2.0 Database....

View Article

Inheritance between table and type in Oracle

The code: CREATE TABLE CLIENTS_PUBLICS OF TYPE CLIENT_PUBLIC UNDER CLIENTS NESTED TABLE Adresse STORE AS ADRESSES NESTED TABLE Compte_Bancaire STORE AS COMPTES ; The error: Error at Command Line:2...

View Article


Image may be NSFW.
Clik here to view.

Conflict resolution in versioned tables

I’m trying to merge two workspaces that contain version-enabled tables. I can’t figure out how to resolve conflicts, because I have a lot of rows with the same ID value. They differ only in time...

View Article

Changing own user permissions with Oracle SQL not being the DBA

I have been making changes to a couple of schemas of different environments (they belong to the same application). Sometimes I’ll want to copy data from one environment to the other, and sometimes I’ll...

View Article


Compare two databases and get the differences

I want to between two databases and get the differences: columns: in the first table the column name is varchar2(12), in the second table the column name is varchar2(20). Or I have an additional column...

View Article

Is bmc-watchdog Causing Unexpected Restart [closed]

My Oracle Linux Unbreakable 6.5 Machine restarted unexpectedly and randomly and i found that some bmc-watchdog error according to my knowledge/google they not any harm unexpected restart. is bmc-watch...

View Article


Image may be NSFW.
Clik here to view.

Normalizing data for joins, dedicated columns, a view or.. something else?...

As an example, i have the following tables USERS, USER_JOBS and USER_HOUSES USER_JOBS keeps a list of jobs for a given user_id USER_HOUSES keeps a list of houses for a given user_id the common use case...

View Article

How to display the number of days elapsed between two dates denoted in...

Perhaps I’m overthinking this Oracle SQL query, but I’m attempting to display the number of days elapsed between two column data-sets attributed as “order-date” and “ship-date”, which will be displayed...

View Article

What is a base64 RAW? How do I use it?

Oracle has a function for encoding a binary value, specifically a RAW type, into base64: BASE64_ENCODE. This makes sense. I want to turn binary into something I can more easily port across systems....

View Article
Browsing all 717 articles
Browse latest View live