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

Aggregate function / query in Oracle 11g

I am working in Oracle 11g. I have been racking my brain all day trying to figure out how to write a particular SQL statement (am a Java/.NET Developer, would not consider myself a SQL expert) I have...

View Article


Oracle service names with a minus sign (?)

Are there any reasons not to use minus signs/dashes/hyphens in Oracle service names? DBMS_SERVICE, tnsping and sqlplus seem to be fine, but the documentation says no. We are switching from Oracle SIDs...

View Article


What is the EXPORT privilege on ORACLE

I have created a user say A. I want to export some of my schemas using A user. For example, I have B and C users. I want to export B schemas using A user. Which grant do I have to use? I am using this...

View Article

On reboot listeners don't start but restarting the service after will start them

when I reboot ubuntu the listener service comes up but it doesn’t seem to have any listeners lsnrctl status LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 24-JUL-2014 15:34:43 Copyright (c)...

View Article

How to verify that a certain commit has been transmitted to standby

Scenario: Oracle Data guard 12c with 1 primary and 1 standby, Max. Av. protection mode Primary open, standby mounted (all green in OEM) Perform a dummy CTAS in primary Question: Without opening it, how...

View Article


Fixing compression oracle in GZIP library

What design change would you add to the GZIP algorithm so that it makes sure that compression oracle is not present anymore? This is assuming that both the INFLATE and DEFLATE endpoint designs can be...

View Article

Oracle using index on partitioned table when full scan would have been better

Trying to make some sense out of this observation in Oracle. Query: SELECT ... FROM MY_TABLE WHERE PART_KEY=x and DT_KEY between 20120101 and 20120731 Uses an index scan on PART_KEY/DT_KEY, even though...

View Article

Image may be NSFW.
Clik here to view.

Oracle Enterprise Manage "CPU utilization" is confusing

When I display the CPU utilization in the Enterprise Manager (in the Performance tab), there is a big discrepancy between the graph that shows the utilization and the table that shows the operating...

View Article


Update previous value field

I inherited a database that has multiple tables that contain some form of an object ID, a date, and a value. The metrics depend on comparing the current value on any given date to the previous value...

View Article


ORA-12518: TNS:listener could not hand off client connection ORACLE XE 11.2 x64

Im starting to be very very frustrated by this Oracle. So, I have installed Oracle XE 11.2 64 bit and ODAC121012_x64. I can start listener, I can do tnsping xe, but when I try to connect as via sqlplus...

View Article

How to find the estimated time for ORACLE SQL Query

Help to find out the following I have 8 million rows in an Oracle table, and this is being queried by a BI tool every day and taking more time. Is there any like explain plan that will give me a rough...

View Article

Pass the unix variable to the ddl command inside a pl/sql block

I would like to create a db link dynamically, using the input given in the unix session. i.e. the remote db name and db instance would be given by the user, in unix, which are VAR1 and VAR2. Now, from...

View Article

Oracle right outer join SELECT statement with a table

I am trying to find out the tables that are in MONITORING.USAGE_TRACKING table in first place, along with the other tables that need to be analyzed. SELECT A.JOB_NAME, A.START_DATE from...

View Article


ORA : 12519 No appropriate Service Handler

Sorry if my question has already been asked many times but I spent two days trying to solve it. I have a machine in which I had an Oracle database. Everything was working propertly until I added two...

View Article

How do you determine which dbclient connection property to use for an Oracle...

I have an Oracle11g database that I connect to via a SQL Workspace; however the actual dbclient string value that works differs depending on machine (and I’m guessing oracle client configuration). On...

View Article


Table statistics on database

Is there any way that I could find how many tables has statistics on them,and how many tables which doesn’t have statistics on them.

View Article

What is "good" single-block read latency?

Is there a reference anywhere that I can go and see what kind of single-block read latency I can expect from Oracle given a certain hardware configuration? I can run a query to show the current...

View Article


Remove ORA-01100:DATABASE ALREADY MOUNTED

I am using Oracle 11g and there is a database create during installation name “xyz” and user “xyz”.Now i created a user ‘abc’ and gave following permission to abc. "CREATE SESSION, ALTER SESSION,...

View Article

How to check if current SQL session has uncommited changes?

Say you are in SQL Developer and want to check if the current user session (i.e. your connection) has uncommitted changes. If you quit SQL Developer, it does such a check and displays a dialog box how...

View Article

How can I enable audit on selected accounts only to know where they logged on...

I want to audit certain DB accounts (the ones used for applications), to know which machine the user is logging on from. To save space, I don’t want to enable this audit for every account in the...

View Article
Browsing all 717 articles
Browse latest View live