oracle10g

Oracle - What happens when refreshing a 'REFRESH FORCE ON DEMAND' view with DBMS_MVIEW.REFRESH

六月ゝ 毕业季﹏ 提交于 2019-12-14 01:07:05
问题 I have the following materialized view - CREATE MATERIALIZED VIEW TESTRESULT ON PREBUILT TABLE WITH REDUCED PRECISION REFRESH FORCE ON DEMAND WITH PRIMARY KEY AS SELECT... FROM... WHERE... This materialized view has no backing MATERIALIZED VIEW LOG. As seen in the clause above this MV has "ON DEMAND" specifies, and according to Oracle documentation, "[ON DEMAND] indicate[s] that the materialized view will be refreshed on demand by calling one of the three DBMS_MVIEW refresh procedures." When

saving a polygon in oracle database

会有一股神秘感。 提交于 2019-12-14 00:25:01
问题 I have captured four points(coordinate) of a plot using a gps device. Point 1:- lat- 27.54798833 long- 80.16397166 Point 2:- lat 27.547766, long- 80.16450166 point 3:- lat 27.548131, long- 80.164701 point 4:- --- now I want to save these coordinate in oracle database which save it as an polygon. Thanks 回答1: If you're intending to use Oracle Spatial for storage or processing of polygons, then you'll need to store the data as an SDO_GEOMETRY object. Here's a quick example: CREATE TABLE my

Can somebody explain dbms_sql.number_table [closed]

≡放荡痞女 提交于 2019-12-14 00:09:30
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I tried to search this but could not get a satisfactory answer hence posting here . somebody please explain 回答1: Better to understand DBMS_SQL itself to some extent, before understanding NUMBER_TABLE . ( I do this for My Learning!) NUMBER_TABLE is Actually, TYPE number_table IS TABLE OF NUMBER

oracle rman simple backup

◇◆丶佛笑我妖孽 提交于 2019-12-13 20:39:45
问题 I would like to backup an Oracle 10G as simple as possible. It is in NOARCHIVELOG mode and I can shut down for backup (it is only a development server). After reading tons of documentation abour rman I tried this way in rman: shutdown immediate; startup mount backup database; sql 'alter database open'; As I see it works fine, list backup shows backups. Than I made some modifications (droping some tables, adding data) and I tried to restore backup: shutdown immediate; startup mount restore

Finding Duplicate Entries in a table

我们两清 提交于 2019-12-13 18:19:09
问题 I have a table with the following fields in Oracle 10g. TABLE_1 account_no | tracking_id | trans_amount Each account_no can have multiple tracking Id's and transaction amounts. How do i query out the duplicate entries of account_no where tracking lies between 1 and 1000, and the corresponding trans_amount ? Many thanks in advance for your help, novice. 回答1: Try the following query: SELECT account_no, tracking_id, trans_amount FROM TABLE_1 WHERE account_no IN ( SELECT account_no FROM TABLE_1

How to call stored procedure that returns sys_refcursor from ireport 4.5.1

二次信任 提交于 2019-12-13 18:03:26
问题 can anyone provide complete tutorial on how to call stored procedure that returns sys_refcursor from ireport 4.5.1. i have already followed this link http://rajendratambat.blogspot.in/2011/10/calling-oracle-stored-procedure-in.html?showComment=1333264003761#c6148133813463786818 but it doesn't work for me.so can anyone have another solution. 回答1: Below are the steps to call a stored procedure to build a report using iReport 4.5/4.5.1 JasperReport In your iReport designer go to Tools -->

(oracle) insert in stored procedure very slow compared to insert run manually

主宰稳场 提交于 2019-12-13 16:46:20
问题 I run an insert from Oracle sql tool that selects about 100.000 rows from various tables and inserts them in another table at different databsae and this ends in 3 mins. I try the same query inside a stored procedure or PLSQL in oracle and we run for about 2 hours. For information i use Source Oracle 11g and the destination Oracle 10g Stored Procedure (takes about 2 hour per store): CREATE OR REPLACE PROCEDURE MGS.TRANSFER_DATA(a_date in varchar2) -- yyyymmdd BEGIN BEGIN FOR xx IN( SELECT STR

Oracle Form freezes after configure WEBUTIL

青春壹個敷衍的年華 提交于 2019-12-13 15:45:07
问题 I am using oracle forms 10g. It is web based oracle form application. I want to generate Excel Report from Oracle Forms 10g. I configured WEBUTIL and use CLIENT_OLE2 package. Procedure declared in trigger WHEN-BUTTON-PRESSED. When button pressed then suddenly the form freezes and they cannot do anything. Exit button and menu options stops working. It does not give any message and does not do any action also. Procedure Code: declare application client_ole2.obj_type; workbooks client_ole2.obj

Got an Oracle Table Named as Reserved Word, Which problems may arise?

青春壹個敷衍的年華 提交于 2019-12-13 15:26:15
问题 We just got a system outsourced and at first glance i can see some tables and fields with names as CASE or FROM. It is an Oracle 10g DB and we are going to be consuming those data from Java, Hibernate, C#, C++. Is there something special we should be aware of? For what i've seen in other posts this is not recommended because it will affect readability of our code, but is there any other, major or more serious problems this could cause? Thanks! 回答1: To escape reserved words in Oracle, you need

Oracle 10G - Query using rownum stopped working after migration from 9i

六眼飞鱼酱① 提交于 2019-12-13 15:22:01
问题 We just recently moved our DB from 9i to 10G (Yes..better late than never and No - moving to 11g is currently not an option :-)) Details of my Oracle 10G DB are :- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production I am faced with a very weird problem since that move. A query that was and still is working fine with 9i just wont work on 10G. I did search through other SO questions related to rownum but couldnt