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

SQL select with unique_list – losing an item

I have an oracle database and I have the following problem: If I make an select like this: SELECT fk_proddes_id,fk_id_cod_deseu, LISTAGG (TO_CHAR (cod_eliminare), ',') WITHIN GROUP (ORDER BY...

View Article


Compressing partition – what about index?

To save space on disk I want to compress some partitions of my tables: alter table TEST_TAB move partition TEST_TAB_2014 compress for all operations; I have also indexes on this partition. Should I...

View Article


Convert string to number from xml at server side

I am having issues converting numbers stores as character (with . as decimal, sometimes are null) to number from xml on server side. Query is part of package. When I run the query below on my computer,...

View Article

create_index_cost used_bytes vs alloc_bytes

I’m reading a lot about create_index_cost, but I can’t seem to find out why there is such a discrepancy between the size of used_bytes and alloc_bytes. I know what each parameter means, but why is...

View Article

Privileges for Oracle users created using the ArcGIS Create Database User tool

I’ve created an enterprise geodatabase on Oracle. I can connect to it from ArcCatalog and from SQL Developer using the SDE user. I’ve created a new user named GFPTest using the Create Database User...

View Article


Oracle Linked Server only works with Sql Login

I’m having this weird error for some time. When I login to sql server and use the linked server SELECT * FROM OPENQUERY(MEGA, ‘SELECT 1 FROM DUAL’) I receive this error OLE DB provider...

View Article

Count values from one table using two columns in another table

I have a problem. I have table_1 (col1, col2, value) and table_2 (col1, col2). I want to count values from table_1 but only the rows which exist in table_2. In both tables col1 and col2 are key (not...

View Article

Regarding table access

How to revoke access for particular table from an user who have ‘select any table’ privilege? I want to block access to system tables that have password details such as user$ etc.. DB : Oracle 11.2.0.4

View Article


Connecting to Oracle Pluggable database using service name

I installed Oracle 12c on windows using all the defaults but choosing to use a pluggable database and to install the sample data. The container database and SID name is ORCL and the pluggable database...

View Article


how to prevent any update to my database before a exp operation?

I want to migrate my database from AIX to Red Hat vai exp/imp. how to prevent clients make any update to my database during the migration progress ?

View Article

Oracle: built in SQL pretty-print?

Oracle has some packages that will dump objects in SQL format, such as dbms_metadata.set_transform_param. One option that can be set is to “pretty print” the SQL. Is there anything in Oracle that will...

View Article

Why does Oracle indicate my table is using so little space?

I’m running Oracle 11g. I have a table with two BLOB columns. I inserted 10,000 rows into the table, and each column contained a byte array of size 10289. As you can see, there are 10,000 rows in the...

View Article

Difference between @multitenant(SINGLE_TABLE) and @multitenant(VPD) in...

Despite the fact I searched a lot in the internet and read many articles, I still be unable to get the difference between the Single_Table strategy and the VPD strategy of EclipseLink. At first I...

View Article


Oracle listener configuration

I have oracle 11.2.0 installed on linux. And I have arcgis server 10.2 on the same machine. I created an geodatabase. But when i try the sde functions like sde.st_asText i got: -ORA-28575: unable to...

View Article

ORA-19809 & ORA-12560

Following some maintenance on our server (change raid battery + reboot) my database (Oracle 11g) is not available anymore. I m a newbie in Oracle and I have been through the forum and I can t find the...

View Article


Monitoring active query step using only pure sql

I would like to monitor actively running query on Oracle. What I mean is to gather info about: Actually running step. (What is currently db engine doing in this query) Actual query plan used in...

View Article

Image may be NSFW.
Clik here to view.

Select max value from many to many tables

i have next tables in may data base: I want to select the book that has the max number of pages for each author. I did this : select auteur.nomauteur, auteur.prenomauteur ,livre.Title,...

View Article


DESCRIPTION_LIST in tnsnames.ora

How does this work? If I specify an address list, I know I can specify a load balance or failover option to switch the connection to the other address. But in case of various descriptors (DESCRIPTION...

View Article

how to update 'update trigger fired record's column?

I’m new on this task. I tried to update when I/F table insert after trigger. but it wasn’t work.. There is my trigger source like.. create trigger T_ATABLE_I after insert on ATABLE for each row ... --...

View Article

Oracle custom week of the year numbering based on first Monday of the year

I have following sql for generating dates, I wanted to change week of the year numbering based on ‘First Monday of the Year’. Hence numbering would be, 01-05-15 ---> 01 01-12-15 ---> 02 01-19-15...

View Article
Browsing all 717 articles
Browse latest View live