Database remote Mview Refresh
I want to a procedure in a database causes a materialized view that exists in a remote database (accessible through a dblink) update.I know that I can't do just [email protected] ('VIEWNAME'), but is it something I could do to (for example) to create a task in the remote database, and that labour don't refresh (locally, now)? Or is there another trick 'workaround' I could use?
Oracle 10.2.0.4.
Why not.
the side MVIEW:
(1) make the remote user side I say LNKMGR.
(2) grant repcat admin to this user:
Start
DBMS_REPCAT_ADMIN. GRANT_ADMIN_ANY_SCHEMA (username-online 'LNKMGR');
end;
/
on the local side:
Start
I just tested and it worked perfectly. Good luck.
(1) create the database link
(2) then refresh MVIE:
dbms_mview. Refresh @
commit;
end;
/
Tags: Database
Similar Questions
-
Hey guys,.
I just want to know the inner workings of full refresh the MVIEW with all true atomicity. When the setting of atomicity is set to TRUE, the data of the MVIEW is removed and re-inserted by using the underlying query/table/view. During the re-insertion, how is it the same deleted row is re-inserted back?
And how does that remove / insert is done in-house? remove 1 line and 1 insertion of line? deleting line 100 and 100 insert? or how many ranks in time?
Thank you
Hello
I do not understand the positive side of this approach because it generates loads and loads of newspapers of recovery which will in turn slow down my other DML operations in the database. >>
The only reason to "prefer" a 'remove all' to a 'Truncate' is when you have to do to be in a single transaction. What happens if a MVIEW refreshing must be part of a larger transaction (which may have to be cancelled)? It's enough to make it impossible to TRUNCATE use, at a high cost.
Personally, I think that after changing the default TRUNCATE delete behavior is sad, many people "learn" cela the hard and I think "TRUNCATE" should be the default - if anyone has need of how to DELETE, "it is in the documentation"...
Best regards
Bruno
-
frozen - e280v2 database of blocked refresh
Looking for a clue here...
My e280v2 itself corrupted to the point where, as soon as voltage, it get stuck in refresh database window. Cannot make or access anything whatsoever.
How can I reset the beast?
For now, I can only feed on and outside...
Can't believe I'lost 7 GB of MP3, video and recording.
Anyone?
Thank you
It worked! Thanks much :-)
I guess you are right about the labels to identification of defective MP3...
My e280v2 is back to life, thanks to you.
I feel that I have the latest firmware: v03.01.16A. Before starting an upgrade, I'll do it chech my files.
Thanks again
-
Firefox does not display the changes on the site after the remote host; Refresh does not work
I recently had to reinstall Windows 7 on my machine, and since it has been wiped off I installed CS5, reconfigured my Dreamweaver site and made changes to our page index.html (so far). After you put the files on my remote server, I noticed that Firefox does not display the changes I made to this file - it is to show the page previously recorded on my CS4 version. Thinking it was a cache problem, I emptied, refreshed/reloaded several times, restarted Firefox - nothing has worked.
I checked the page in IE8 and all changes are not displayed correctly. I used BrowserLab to display a preview in IE, Firefox (same version 3.6 which I use) and Safari, and all 3 display correctly version update of the page. Visualization in 'live' of Firefox seems to be the problem, and I've looked everywhere for answers. Help is needed and appreciated!
It is possible that you redefined the site incorrectly and put the files to the wrong address on the server. Carefully check both your local and remote sites definitions.
-
How to refresh a Mview connected as sys? Please share if there is a way or a doc.
Thank you.Use
begin dbms_mview.refresh('USR.PS_CB_COMBO_DEP_VW'); end;
-
How to access the USER_TABLES of a schema by linking of database remotely?
Hi all
I have a question about the links table and database USER_TABLES. I have a database link to a remote schema that allows me to access its tables without having to modify the connection.
My problem is that when I try to run:
As I understand it (Please correct me if I'm wrong), because I use a database link to connect to the remote schema, I am not considered to be the owner of these tables and so the query returns no rows.SQL> SELECT table_name FROM user_tables@dbLinkToRemotSchema no rows selected.
However, I need to have access to a PL/SQL script at the same time my own user_tables, as well as the remote schema. Is there a way to do this?
Thanks in advance,
Kind regards
DariyooshHello
This means that remote users by which you created the db link does not all tables.
Can interrogate you user_objects instead and check if they are synonymous (table you reference in your code)
Concerning
Anurag -
Database remote stop using shell script
Hi all
I need to close a remote database through shell script. I won't know SYS password and so cannot connect directly.
I need to SSH to the remote database will define ORACLE_SID and then stop the database.
Note Please I want to achieve this without calling any other SQL or shell script I have ssh.
Pointers or help is much appreciated.
Kind regards
Nagendra ChillaleHi Nagendra,
following works for me...
SSH otherhost ".» \$home/.bash_profile
export ORACLE_SID = MYSID
echo \"shutdown abort\ | sqlplus------' / as sysdba\.
"SSH otherhost ".» \$home/.bash_profile
export ORACLE_SID = MYSID
sqlplus------' / as sysdba\.<>
startup
EXPRESSIONS OF FOLKLORE
"HTH Mathias
Published by: mzarick on August 13, 2009 11:27
-
Please how to access the database remotely?
Hi all, I'm new to this forum and I hope to accept me as a friend. I have a project to study and my supervisor leaves me free to choose the appropriate application to build electronic forms that are interactive, intelligent and dynamic, I study the different products from different providers such as MS infopath, IBM lotus forms,... etc and finally choose Adobe XFA is for its reliable features so I'm totally new to livecycle designer and I learn of your discussions a lot of useful information every day.
I am creating a forms that are connected to an oracle database and I get there and also to create a simple HTML that contain a link to the pdf that i form ' v was built and I host this page on a web server to iis on the same machine, and when I open the page in the same machine and click on the link then the pdf form loaded and properly open through the Acrobat to inside the brwoser, but the problem raised by trying to open this form from another machine that connected to the hosting machine where a notification telling me I have to build the ODBC DSN connectivity again on another machine and I think that should be made on each user's computer.
My question, is there a way to allow other users to open the pdf form through their web browser without the need to rebuild a databese DSN connectivity in their machines too (IE leave only on the hosting machine connectivity). I read PAUL's response to the station "Database connection and what is the best method" recommending to use a separate form for this case, but I did not understand how.
Tips, scripts or links is really appreciated, thank you in advance.
No there would be a form... .the intermediate process would be a server (for example, a servlet) program. EForm th post (via HTTP or HTTPs) to the servlet and the servlet would interpret the data entry and establish the connection to the DB and the results, put them in shape and return to the form. As mentioned this can be done easily using LiveCycle server, but you don't have to use that if you prefer to write your own.
Paul
-
MV incremental update on remote database table join query
Hello
I am creating a MV with incremental refresh option on a join query with 2 tables of database remote.
Created journals of MV on 2 tables in the remote database.
DROP MATERIALIZED VIEW LOG ON emp;
CREATE MATERIALIZED VIEW LOG ON emp WITH ROWID;
DROP MATERIALIZED VIEW LOG ON dept;
CREATE MATERIALIZED VIEW LOG ON WITH ROWID dept;
Now, try to create the MV,
Mv_emp_dept CREATE MATERIALIZED VIEW
IMMEDIATE CONSTRUCTION
REFRESH QUICKLY
START BY SYSDATE
1 /(24*15) NEXT SYSDATE+.
WITH THE PRIMARY KEY
AS
SELECT e.ename, e.job, d.dname FROM emp@remote_db e, dept@remote_db d
WHERE e.deptno = d.deptno
AND e.sal > 800;
Get the error ORA-12052.
Can you please help me.
Thank you
AnjanNeed to include the ROWID in the mview. Should be something like: -.
CREATE MATERIALIZED VIEW mv_emp_dept BUILD IMMEDIATE REFRESH FAST AS SELECT e.rowid rowide, e.ename, e.job, d.rowid rowidd, d.dname FROM emp@remote_db e,dept@remote_db d WHERE e.deptno=d.deptno AND e.sal>800;
-
To connect remotely to the GR 11, 2 Oracle database
Hello world
I'm a beginner who aims to become a DBA. With no prior experience in the administration of the database, I suspect some of my questions will be stupid enough, but once learned, it is learned for good, so please be gentle :)
After you install Oracle Linux 6 version 3 and database Oracle 11 GR 2 on a dedicated machine, I downloaded Navicat for Oracle (trial) and tried to connect to the database remotely. So far I've succumbed.
The listener is in PLACE and I can connect to https://localhost:1158 / em very well. Address Net Listener is configured as follows:
(ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1521))
I have a hunch that "localhost" might not be sufficient to allow remote connections, but some documentation I read was a little confused. I also tried adding another auditor who would use 'HOST' entry as the DNS name of the complete machine but which seemed to spoil 'EM completely.
On the error message: whenever I try to connect, I get "ORA-12541: TNS:no listener. But, as I said, the listener is in PLACE.EduardB wrote:
[oracle@eburlacu-server ~] $ env | Sorting
_ = / bin/env
CVS_RSH = ssh
G_BROKEN_FILENAMES = 1
HISTCONTROL = ignoredups
HISTSIZE = 1000
HOME = / home/oracle
Host name = eburlacu - server.ro.oracle.com
KDEDIRS = / usr
KDE_IS_PRELINKED = 1
LANG is en_US. UTF-8
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME = oracleMAIL = / var/spool/mail/oracle
ORACLE_HOME=/OracleDB/product/11.2.0/dbhome_1
PATH=/usr/lib64/Qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Oracle/bin
PWD = / home/oracle
QTDIR=/usr/lib64/Qt-3.3
QTINC=/usr/lib64/Qt-3.3/include
QTLIB=/usr/lib64/Qt-3.3/lib
SELINUX_LEVEL_REQUESTED =
SELINUX_ROLE_REQUESTED =
SELINUX_USE_CURRENT_RANGE =
SHELL = / bin/bash
SHLVL = 1
SSH_ASKPASS = / usr/libexec/openssh/gnome-ssh-askpass
SSH_CLIENT = 10.171.84.190 57486 22
$SSH_CONNECTION = 10.171.84.190 57486 10.171.80.239 22
SSH_TTY = / dev/pts/2
TERM = xterm
USER = oracle(LS_COLORS apparently contains unauthorized content)
Published by: EduardB on August 3, 2012 13:06
question OS commands below
export ORACLE_SID = eburlacu
export ORACLE_BASE = / oracledb
export PATH = $ORACLE_HOME/bin: $PATH
lsnrctl status
lsnrctl serviceCOPY orders & results then PASTE all come back here
-
ORA-12560 error adapter, connect to the remote database
I started to learn Oracle for the last week or two, and certainly my installation process was a bit special. In the end, I try JBoss to connect to the database, but for now, I just want to try a simpler installation.
I use Instant Client on Windows 7 with Oracle 11.2 running on a RedHat 5 virtual machine. When I connect with the following...
sqlplus sys@domain:1521/sid
It crashes, it's finally time. When I use...
sqlplus sys as sysdba @domaine: 1521/sid
It asks for my password, then gives me the error of the adapter, after I get it.
My listener status is:
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on February 21, 2012 16:27:16
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start date February 20, 2012 15:28:54
Operating time 1 days 0 h 58 min 21 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Parameter Listener of the /var/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file
The listener log file /var/app/Oracle/diag/tnslsnr/SSC-redhat64/listener/alert/log.XML
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=domain) (PORT = 1521)))
Summary of services...
"Sid" service has 1 instance (s).
"Sid" instance, status UNKNOWN, has 1 operation for this service...
Service 'sid.domain' has 1 instance (s).
"Sid" instance, State LOAN, has 1 operation for this service...
Service 'sidXDB.domain' has 1 instance (s).
"Sid" instance, State LOAN, has 1 operation for this service...
The command completed successfully
My main reason to use Instant Client is simply to test the connection to the database remotely. What other information should I post? Any help would be much appreciated.>
ORA-12504: TNS:listener did not have the SERVICE_NAME in CONNECT_DATA
Try with quotes around the part of login id, for example
C:\>sqlplus user@'hostname/test'
-
Database SQL vCenter that is running on the virtual machine within vsphere
Hey guys, I was wondering how many of you are running your database remote vcenter on a virtual machine inside your vsphere environment? We always ran the vcenter db on a physical remote outside the vsphere group box, but I am considering the upgrade to sql 2008 R2 and I already have a virtual sql server computer running within vsphere.
Pro/drawbacks to be aware of the db running on a virtual machine?
Thanks in advance
Kevin
We rotated our SQL database in a VM for a while now.
Some advantages are for example the wide use of HA and the ability to easily extend if necessary resources. In addition, if you use backup as Veeam software a restore takes only a few minutes from a physical configuration.
There are a few things when you have to keep in mind:
-Make sure that your SQL VM database begins before your vCenter (the service does not start if it cannot reach the database), even if it can be fixed manually it might be something you want to keep in mind
-If you use the distributed switches power risk since data is stored in the database, of course there are solutions for this (keep the traffic on a standard switch management)
-If you use HA make sure you modify the priority of restarting HA for the virtual machine (you don't want a reboot suddenly)
-
Not able to connect remotely by using the oracle db client.
Hello
I am trying to connect to the database remotely. I installed the Oracle client on my local machine (Windows 7) and try to connect to db.
I am able to do tnsping. Here is the log.
But when I try to connect I get ORA-12504: TNS:listener was not the SERVICE_NAME mistakenly CONNECT_DATA.
Here is the full changelog.
C:\Windows\System32 > tnsping DEVDB
AMT Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 20-AUG-2
013 14:18:42
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Use settings files:
D:\app\swanand_kulkarni\product\11.2.0\client_1\network\admin\sqlnet.ora
EZCONNECT adapter used to resolve the alias
Try to contact (DESCRIPTION = (CONNECT_DATA = (SERVICE_NAME =)) (ADDRESS = (PROTO
(COL = TCP)(HOST=10.111.0.121) (PORT = 1521)))
OK (560 msec)
C:\Windows\System32 > sqlplus test1/***@devdb
SQL * more: Production release 11.2.0.1.0 on Tue Aug 20 14:18:47 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12504: TNS:listener did not have the SERVICE_NAME in CONNECT_DATA
Try this EZconnect channel,
sqlplus test1/***@Oracle1:1521/devdb
--
John Watson
Oracle DBA master HOMOLOGUEES
-
How to start the database services according to eBS 12.1.1 fix already in place
Migration db eBS 11.5.10.2 9.2.0.6 to new server eBS 12.1.1 db 11.1.0.6.
Chosen path: db 9.2 improved and migrated to db 11.1 using exp/imp on new server
After eBS 12.1.1 predict file system db existing 11.1 how to bind db level of applications and to start the Server service.
AutoConfig completed successfully.
Can you connect to the database remotely after running AutoConfig from the database and the database listener and successfully? If so, run your script and see if it works.
Thank you
Hussein
-
Public connected user database link creation
Hello, DBA
I tried to create the user database link connected audience.
I have two databases (orcl, orcltest)
Orcltest database, I created dblink
SQL > grant create public database to u1 link;
Grant succeeded.
SQL > conn u1
Enter the password:
Connected.
SQL > create sequoia link of public database using "orcl".
Database link created.
In orcl, I tried to access
SQL > select * from u1.tab1@redwood;
Select * from u1.tab1@redwood
*
ERROR on line 1:
ORA-02019: description of the connection to the remote database not found
QUESTION: what is the error?
Note: tns, earphone works very well. No problems.
Prod: 1 0.2.0.4.0
OS: rhel 5.1
Thanks in adnvance...Hello
Orcltest database, I created dblink
SQL > grant create public database to u1 link;
Grant succeeded.SQL > conn u1
Enter the password:
Connected.SQL > create sequoia link of public database using "orcl".
Database link created.Here, you create a DBLINK on the ORCLTEST to the ORCL database, sort of source database is ORCLTEST and target is ORCL.
In orcl, I tried to access
SQL > select * from u1.tab1@redwood;
Select * from u1.tab1@redwood
*
ERROR on line 1:
ORA-02019: description of the connection to the remote database not foundIt will not work because you created the dblink on the source database, which is ORCLTEST.
DBLINKS give you a way to access resources (tables, indexes, packages, etc.) in a remote database.
What you do is:
1. create a dblink on ORCLTEST. This dblink will provide access to ORCL via the ORCLTEST.
2 instead of this, you you connect directly to ORCL. That won't work, your DBLINK is not here, you can create another one here pointing to the ORCLTEST.
DBLINKS act as a bridge, a connection between two databases. They are only available in the source database to create a link to a database remotely (target).
Maybe you are looking for
-
Example: Pavilion 2226: hard drive partition
I have little space unallocated and add volume to the C drive. But I'm unable to extend the volume that the option "extend volume" was greyed out. Please suggest how to extend the volume on drive C. I use Windows 8 OS 64-bit unique language.
-
I believe that I received a message from phishing on 'update' from my account and ask different types of information. Who can I transmit the message of confirmation and other possible actions?
-
I put amounts of silence that I should add regularly and used to have shortcuts stored in Cool Edit Pro to record key strokes.I have a shortcut to insert silence in the hearing, but I have to type the time every time. I am looking for three shortcut
-
Red path? Blue trail?
Am a beginner Illustrator (fool). I can't find the meaning of the red and blue paths around an object. I know that the red path stop me to add a line in the region, it is the exponent.
-
How to remove the objects that appear only in outline view?
I've hidden objects in a file that only appear in schema view. It wont let me select them and is to make the file larger then it must be. Any ideas to get rid of these unwanted items? Thank you!