Periodic refresh of a servlet..?
Hai people,
I have an appliaction scope object which is created using setAttribute mehod servletContext object. and the same can be retreived using getAttribute method of servletContext object.
I need to update the application scope object for every specified time interval. How can i periodically refresh my servlet such that my application scope object gets updated !! ??
Awaiting for ur replies !!
Thanks in advance,
Mani.
Hello,
We are also very interested in such feature.
We periodically query some backend databases on their System Change Number (ora_rowscn) to discover inserted and deleted data. The scheduling is currently done with a Spring Framework Container that is embedded in the grid (1) but we would be very interested in having such scheduling integrated in the CacheStore API. This would help us to prevent execution of the same loading task on each node of the grid.
Our pattern today is :
1. create a Named Cache called "cache-loader" to:
** store the context of each loader (last-load-time, last-integrated-system-change-number, etc)
** prevent concurrent execution of a loader using an entryProcessor to send the task on the active node that holds the context
2. Associated each loader ("my-backend-1", "my-backend-2", etc) a key and context stored on the "cache-loader" NamedCache
** Sample : key="my-backend-1-loader", value = MyBackend1LoaderContext[lastExecutionTime,lastIntegratedSystemchangeNumber, ...]
3. Develop an EntryProcessor for each loader (e.g. "my-backend-1-loader") that queries the backend database using the last system change number to retrieve the modified data
4. Schedule the invocation of the the loader EntryProcessors via SpringFramework on each node of the grid
We are aware that our approach does not scale well, that the EntryProcessors are over invoked (once per node of the grid instead of once for the whole grid) . Our trick is the serialization of the entry processors, we look at the last execution time and decide to skip the loader's business logic if this is an over-invocation.
If the number of nodes of the grid increases to numbers that would make the over-invocation problematic, we will schedule the invocations on an external component but we prefer to group all the grid related business logic in the grid.
Cyrille
Cyrille Le Clerc
[email protected]
(1) http://coherence.oracle.com/display/COH35UG/Integrate+CacheFactory+with+Spring
Similar Messages
-
Periodical refresh of data on page or refresh on command?
Hi!
I have a start page in my application that displays data from a couple of iterators. This page is intended mainly to navigate to some tasks on this data but the task depends on the data itself. So I must ensure, that when the user clicks on a command link (let's saj in a table column) the data on that table is refreshed. I've been thinking about some functionality that would cause the data on the page to refresh periodically since there is also a picture displaying current positions of some transport units (either is there or it isn't, I don't need any real-time refreshing). Second option is to somehow refresh the needed iterator when user clicks the row since sometimes it happens that a user clicks on the link of the row but when the task is started the data is not from the row he clicked on but of a completely different record since there was some data change from another user that caused different row order in that table.
Please let me know what is the best way to deal with my requirement and if periodical refresh is OK, how to implement periodical refresh of the page or if concidering this advice: http://radio.weblogs.com/0118231/stories/2005/06/16/whyIsntRefreshingTheBrowserPageEnoughToRefreshTheDataDisplayed.html - refresh all iterators on the page.
I hope my question is clear.
Regards,
BB
BTW
Using ADF BC 10.1.3.3
Edited by: Brokenbone on Jul 22, 2009 11:41 AMHi,
I think you can use poll tag with interval and pollListener specified, you can find more details on below links
http://www.oracle.com/technology/pub/articles/jellema-muir-adf-part2.html
http://thepeninsulasedge.com/frank_nimphius/2007/09/18/adf-faces-using-afpoll-to-refresh-a-table
Sireesha -
Periodic refresh of Materialized View
Hi,
I am working in a Oracle database for Oracle E-Business Suite.
In the database we have a custom materialized view defined as follow:
CREATE MATERIALIZED VIEW APPS.XXCUS_NAME_MV
<...>
BUILD IMMEDIATE
REFRESH FORCE ON DEMAND
<....>
From the below SQL I learn that the MV was refreshed during the night, I assume this is every night since i have executed the query for the last several days.
SELECT OWNER, MVIEW_NAME, LAST_REFRESH_DATE, REFRESH_METHOD, REFRESH_MODE, BUILD_MODE
FROM DBA_MVIEWS
WHERE MVIEW_NAME LIKE 'XXCUS_NAME_MV%'
APPS
XXCUS_NAME_MV
10-10-2013 2:00:14
FORCE
DEMAND
IMMEDIATE
However, I cannot find anywhere how this refresh is scheduled by means of a job?
I tried below query but there are no scheduled jobs for DBMS_REFRESH.REFRESH or DBMS_MVIEW.REFRESH.
SELECT * FROM DBA_JOBS;
Does anyone has an idea how the MV is refreshed automatically (periodically) other tahn by jobs?
Thx!Try looking in the *_SCHEDULER_JOBS view. This is now the preferred means of scheduling jobs, though DBA_JOBs is still supported.
this link might give you a good start:
http://docs.oracle.com/cd/E11882_01/server.112/e25494/scheduse.htm -
Manually refreshing page in servlet
Hi,
I have this servlet that when processed automatically opens a window that display the results, however, because of IE's caching, when I reprocess the page the window still displays the old data. I can simply set the caching settings but I was wondering if there is a programmatical way of doing it. I try to do it on the client side using <meta http-equiv=no-cache> or <body onload="window.location.reload()"> or <meta http-equiv=refresh> or <body onload="window.location.href=window.location.href"> but nothing seemed to work. Can someone give me some hints?
Mike LamI'm not sure I follow. A Servlet cannot open a window, it can only write data the client. So, as long as you are writing new data, the cachine of IE would be a non-issue. And there is no way that IE can cache a Servlet class because IE doesn't have access to the class file, it's on the server. I probably didn't help much, but maybe you could elaborate more on what you are doing and what is going wrong.
-
Hi
Will the below ensure that distributed (internal local cache scheme) is refresh at regular intervals by setting high-units, low-units to zero.
The use case is to expire all entries in cache at regular intervals, and reload them from cache store.
<distributed-scheme>
<scheme-name>example-distributed</scheme-name>
<service-name>DistributedCache1</service-name>
<backing-map-scheme>
<read-write-backing-map-scheme>
<scheme-name>DBCacheLoaderScheme</scheme-name>
<internal-cache-scheme>
<local-scheme>
<high-units>0</high-units>
<low-units>0</low-units>
<expiry-delay>60s</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.test.DBCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>locations</param-value>
</init-param>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<read-only>true</read-only>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
</read-write-backing-map-scheme>
</backing-map-scheme>
<thread-count>10</thread-count>
<autostart>true</autostart>
</distributed-scheme>
I see with above config, that all objects are being expired at 60s(expiry delay) * .5 (refresh-ahead-factor) = 30 secs, (as low-units and max-units is set to zero). Please clarify if this configuration works in all cases.
Thanks
sunderHi sunder,
refresh-ahead does not on its own guarantees refresh.
Refresh-ahead is only ever consulted if there was a get()-like operation (read operation specifically directed against the entry... queries are not suitable for triggering refresh-ahead) against the entry within the interval designated by the refresh-ahead-factor.
Let's suppose you have refresh-ahead set to 0.25, and expiry-delay set to 1 minute, then if you have a get against the entry in the last 15 second (= 0.25 * 1 minute) before it expires, then there is going to be an asynchronous fetch of the entry from the cache store. This means that the triggering read will see the old value, but once the asynchronous fetch completes, it will replace the old value with the newly fetched value in the cache.
But if there are no triggering reads, then it will simply expire instead of refreshing.
Best regards,
Robert
Edited by: robvarga on May 9, 2011 1:56 PM -
How to use multithreads in servlet or beans?
I need a servlet to run every 2 minutes to refresh a application varible.How can I do this?Please show me code examples,Thanks!!
sounds to me the application should make periodic requests to the servlet, if so, use a thread in the app to request/sleep.
-
Same JSP/Servlet is executing again and again
Hello,
We have some JSPs which do a lot of processing and is 'alive' for a long period
of time. If we use the JSP with small amouts of data, it is fine. But when we
use the JSP with lot of data, it seems to 'go in a loop'.
It is processing the data again and again and again and brings down our server.
We do not think it is the code that is wrong - as it processes perfectly if the
data is small or when our server is not busy. This problem happens if the data
is lot and the server is also busy. The JSP seems to be executing again and again.
Is there some type of 'refresh' logic in weblogic that refreshes the JSP/servlet
and makes it 'execute' again and again.
We are using WL 6.1
Thanks,
Oleg.Hi Oleg,
Could you tell us how you find out that there is an additional request?
Regards,
Slava Imeshev
"Oleg" <[email protected]> wrote in message
news:[email protected]...
>
Thank you Varad and Slava,
We don't use plagin for iplanet,
but our problem is very similar:
Weblogic generate additional request if the previous request toservlet/jsp is
taking long time.
Where I can configure JSP timeout to fix this problem?
Thank you very much.
Oleg.
"Varadharajan" <[email protected]> wrote:
Hi Oleg,
Are you using weblogic plugin for iplanet webserver ?
In weblogic server 6.1 sp3 there is a problem with this plugin. It would
generate
additional request if the previous request to servlet/jsp is taking more
than
the configurable timeout set in the obj.conf file of iplanet webserver.
This plugin problem is fixed in wls6.1 sp4.
Rgds,
Varad
"Slava Imeshev" <[email protected]> wrote:
Hi Oleg,
See my answers inline.
"Oleg" <[email protected]> wrote in message
news:[email protected]...
Hello,
We have some JSPs which do a lot of processing and is 'alive' for
a
long
period
of time. If we use the JSP with small amouts of data, it is fine.But
when we
use the JSP with lot of data, it seems to 'go in a loop'.I guess you need to figure out if "seems" really "does".
It is processing the data again and again and again and brings downour
server.
How do you know that a JSP goes into a loop?
We do not think it is the code that is wrong - as it processes
perfectly
if the
data is small or when our server is not busy. This problem happensif the
data
is lot and the server is also busy. The JSP seems to be executingagain
and again.
What load is considered to be high/low for you
application? Are you running a load test?
Is there some type of 'refresh' logic in weblogic that refreshes
the
JSP/servlet
and makes it 'execute' again and again.Normally Servlet/JSP enters service() method when
there is an incoming request. It should not be happening
at JSP's will.
Regards,
Slava Imeshev -
Same Servlet/JSP is executing again and again
Hello,
We have some JSPs which do a lot of processing and is 'alive' for a long period
of time. If we use the JSP with small amouts of data, it is fine. But when we
use the JSP with lot of data, it seems to 'go in a loop'.
It is processing the data again and again and again and brings down our server.
We do not think it is the code that is wrong - as it processes perfectly if the
data is small or when our server is not busy. This problem happens if the data
is lot and the server is also busy. The JSP seems to be executing again and again.
Is there some type of 'refresh' logic in weblogic that refreshes the JSP/servlet
and makes it 'execute' again and again.
We are using WL 6.1
Thanks,
Oleg.
there is no refresh logic in wls unless u specify it.
please check the code for any "refresh"ing the page
SP
"Oleg" <[email protected]> wrote in message
news:[email protected]..
>
> Hello,
> We have some JSPs which do a lot of processing and is 'alive' for a long
period
> of time. If we use the JSP with small amouts of data, it is fine. But
when we
> use the JSP with lot of data, it seems to 'go in a loop'.
> It is processing the data again and again and again and brings down our
server.
> We do not think it is the code that is wrong - as it processes perfectly
if the
> data is small or when our server is not busy. This problem happens if the
data
> is lot and the server is also busy. The JSP seems to be executing again
and again.
>
> Is there some type of 'refresh' logic in weblogic that refreshes the
JSP/servlet
> and makes it 'execute' again and again.
> We are using WL 6.1
>
> Thanks,
> Oleg.
-
Refresh data in popup by external event
Hi folks,
I have got a popup with an alv grid displaying data from a database table.
I want to reload the alv grid in case new entries were created outside of this popup.
I thought it would be possible to fire an ABAP OO event after writing new data to database.
The popup implements a handler for this event and this handler executes a manual refresh.
My problem is that the event handler doesn't get this external event.
In case I fire the event within the popup screen it works.
I already thought about a periodic screen refresh. But that causes to much database traffic.
Are there any suggestions?
Thanks,
JosefHi Joseph.,
I think periodic refresh is the way for ur requirement., U pls post ur thread here.. [ABAP OO Forum|ABAP Objects; . U will get some more useful inputs.,
Thanks & Regards
Kiran -
Automator: can I make it refresh a web page?
Sorry if this is off topic for this forum. I want to create an Automator script that will periodically refresh my Firefox (or Safari if need be) window. Playing with the program and searching online have not given me any real starting points. Can you direct me to a resource for programming this, or tell me if it is even possible? Thanks!
I have experienced similar problems.
After a while you realize you got stuck, made a mistake, started on the wrong track.
Solution is simple : start over again and do it right.
And no, you cannot change your pages into blogpages. -
"Hello,
From reading of these newsgroups I've seen many different manifestations
of what seems to be the same root cause with connection pools and
connections which are refreshed/replaced when found broken. In our
case weblogic server hangs.
Kit: 2xWeblogic 5.1.0 sp11 (not clusterd), Solaris 8,
java 1.3.1_01, 1xoracle 8.1.6, latest JDBC 2.0 drivers from oracle. Each weblogic instance and oracle have their own machines.
We do indeed have a firewall employed to run our subnets, and hence
our weblogic servers and oracle databses are in different DMZ's, but are
allowed to communicate to each other via rules set up on the firewall and
inspection of the logs show no such connections being dropped.
As far as the db is concerned, lookups (no writes) never take more than a few
hundred milliseconds and are then closed and given back to the connection pool
immediately from within the 'finally' block of code, hence hard to see when,if ever, the db is
is closing them due to excessive idle time.
weblogic.jdbc.connectionPool.RecipeDBPool=\
url=jdbc:oracle:thin:@foo:1521:BAA,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=30,\
maxCapacity=50,\
capacityIncrement=1,\Alkesh wrote:
Hi Joe,
The fix you suggested has been implemented and has been running fine
now for the past 3 days. I'm delighted with the result,Great. Glad to help.
but am concerned as to why this problem wasnt highlighted during our
load-testing phases...It's a possibility that your load-testing didn't present the same sort
of load that your actual runtime does.
Thanks for your time on this.Well sure. We want you successful.
Joe
Alkesh
At 01:52 PM 2/22/2002 +0000, you wrote:
Hi Joe,
Thanks for your reply
Please find attached a copy of the jvm thread dump we got from thelast time
that weblogic blocked upon trying to refresh a broken connection.
We have turned off JIT with the environment settingJAVA_COMPILER=NONE.
FYI hotspot is enabled with '-hotspot', these settings can be foundin the
attached 'startWeblogic.sh'.Hi. I found a serious problem by reading the thread dump:
"ExecuteThread-11" daemon prio=5 tid=0x179d40 nid=0x19 waiting for
monitor entry
[0xeee80000..0xeee819e0]
at java.sql.DriverManager.getConnection(DriverManager.java:144)
- waiting to lock <f8e77ad0> (a java.lang.Class)
at com.akqa.sainsburys.jv_recipe.ejb.session.RecipeBean.getConnection(Re
cipeBean.java:759)
It is important to never call DriverManager methods in a multithreaded
application
such as Weblogic, because these JVM methods are alloverly synchronized
at
the class level. One such method, DriverManager.println(), is called
continuously
by all JDBC drivers as well as the SQLException constructor. If one
server thread
makes a long-lasting or hanging call to DriverManager.getConnection(),
it can halt
all JDBC in the whole JVM including work on other open driver
connections.
Please show me the code for RecipeBean.java, and I will send you an
altered version
that should solve this problem. In fact, I can infer from the thread
dump what is needed.
Change the one method getConnection() to this:
// Make once and re-use a driver instance directly, avoiding
DriverManager
Driver d = (Driver)class.forName("weblogic.jdbc.jts.Driver").newInstance();
public Connection getConnection()
return d.connect("jdbc:weblogic:jts:yourPoolNameHere", null );
Also, change your pool definition. I assume you have
testConnsOnReserve set to true.
(You should). Also, you should change your refresh minutes to
something huge, like
9999999. The refresh is interfering with your online performance and
is unnecessary
if you have testConnsOnReserve set. I recommend:
weblogic.jdbc.connectionPool.RecipeDBPool=\
url=jdbc:oracle:thin:@foo:1521:BAA,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=50,\ <------ note that this should be the
same as max, so all cons are made at startup
maxCapacity=50,\
testTable=dual,\
testConnsOnReserve=true,\
refreshTestMinutes=9999999,\
etc.
Joe
I've also attached some firewall logs around the time of weblogicblocking
(12.09). I could only get screen dumps for you, this may or maynot be
useful.
For the firewall logs use the following legend :-
195.110.64.205 - DNS
172.16.160.195 - host webserver 1 (i.e. what our licenses are boundto)
172.16.160.196 - host webserver 2
172.16.160.220 - website 1
172.16.160.230 - website 2
Thanks
Alkesh
-----Original Message-----
From: Joe [mailto:[email protected]]
Sent: 20 February 2002 22:09
To: [email protected]
Subject: Re: 5.1.0 sp11 Connection pool refresh issue,
revisited....again...!!!
At 02:47 PM 2/20/2002 +0000, you wrote:
Hi Joe,
Please find attached a copy of our thread dumps for the most recentoccasion
that weblogic server has stopped.
Apologies for any misunderstandings with my previous post, it appears to
have been cropped. Full posting below (yes we do have testConnOnReserve and
testTable properties set).
Thanks for your time.sure, but first let's get you running OK. These dumps seem to be
very cryptic, as if you're running a highly optimized JVM that
loses almost all of the Java class references I'd normally see.
Can you run again with a more basic JVM? I am beginning to suspect
the JIT JVM...
Joe
Alkesh
Joseph Weinstein wrote:
Hello,
From reading of these newsgroups I've seen many
different manifestations of what seems to be the sameroot cause with connection pools and connections
which are refreshed/replaced when found broken. In our
case weblogic server hangs.
Kit: Weblogic 5.1.0 sp11 (not clusterd),
Solaris 8, java 1.3.1_01, oracle 8.1.6,
latest JDBC 2.0 drivers from oracle.
We do indeed have a firewall employed to run our subnets,
and hence our weblogic servers and oracle databses are
in different DMZ's, but are allowed to communicate to each
other via rules set up on the firewall and inspection of
the logs show no such connections being dropped.
As far as the db is concerned, lookups (no writes) never
take more than a few hundred milliseconds and are then
closed and given back to the connection pool immediately
from within the 'finally' block of code, hence hard to
see when,if ever, the db is is closing them due to excessive idle time.
weblogic.jdbc.connectionPool.RecipeDBPool=\
url=jdbc:oracle:thin:@foo:1521:BAA,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=30,\
maxCapacity=50,\
capacityIncrement=1,\
allowShrinking=false,\
testTable=dual,\
testConnsOnReserve=true,\
shrinkPeriodMins=1,\
refreshTestMinutes=10,\ // has been 1 and 5 but 10 'more' stable.
Fequently however, connections are found to be broken
(either by periodical refresh - refreshTestMinutes or
testing connection before granting it to the
application - testConnsOnReserve=true), this has been
confirmed by viewing JDBC.log .
When this is so, weblogic attempts to replace these
broken connections with new ones and then proceeds
to grant it to the application. Once in a while however
(and by no means 'x' refreshes later), weblogic will not
come back.
One of 2 errors occur in our deployment which cuase weblogic
to refresh a connection.
<JDBC Pool RecipeDBPool> java.sql.SQLException: No more data to read fromsocket
and
<JDBC Pool RecipeDBPool> java.sql.SQLException: Io exception: Broken pipe
I believe these settings to all be correct, JDBC drivers
in the correct point BEFORE weblogic.aux in classpath, yet
still have the issue of broken connections.
Any ideas ? I've been reading a lot into this probelm
on various postings now, and i'm completely stumped.
Thanks for your time.
Alkesh -
MView - is not refreshed.
Hi,
I created this mview>>
CREATE MATERIALIZED VIEW zedi_bwvypisy
BUILD IMMEDIATE
REFRESH COMPLETE START WITH SYSDATE
NEXT SYSDATE + 1/48
as select ..
union all
select ..
I didnt use refresh fast on commit because my master tables dont have any primary key (is this the right reason?) therefore I tried periodic refresh - start and next (every 30 min.).
But my mview is never refresed, last refreshing is always the time when I created mview (information from user_mview).
My master tables dont have any primary keys or indexes, is it necessery to have any pk on master table? Whery could be a problem?
Thanks, zd.I didn't use refresh fast on commit because my master
tables dont have any primary key (is this the right
reason?)That's not the reason, you can fast refresh an MV using rowid. The reason is that your MV uses a complex query (union all).
Anyway, I tried your syntax and it works to me :
SQL> create table newemp as select * from emp;
Table created.
SQL> select count(*) from newemp;
COUNT(*)
14
SQL> CREATE MATERIALIZED VIEW mv1
2 BUILD IMMEDIATE
3 REFRESH COMPLETE START WITH SYSDATE
4 NEXT SYSDATE + 1/1440
5 as select * from newemp
6 union all
7* select * from newemp
SQL> /
Materialized view created.
SQL> delete newemp where rownum=1;
1 row deleted.
SQL> commit;
Commit complete.
SQL> select count(*) from newemp;
COUNT(*)
13
SQL> select count(*) from mv1;
COUNT(*)
28
SQL>after 1 minute :
SQL> /
COUNT(*)
26
SQL> -
Is there a way to auto-refresh photo slideshow contents?
I'm trying to create a slideshow on ATV that contains photos of an event like a party as I add the photos to iPhoto. I'm using an Eye-Fi card in my camera which will upload photos as I take them into the iPhoto Auto Import folder. I've then setup an iPhoto smart album named Todays Imports and I point my ATV to that folder and start a slide show.
ATV will pick up all the photos as of the time it connects to my library but it won't refresh from my library until I stop iTunes and restart it and reconnect to my library.
It would be great if I could have a setting in ATV that says to periodically refresh the photos from the library while the slideshow is running. Then I can pass the camera around during the party and as people take pictures they would show up on the TV's slideshow.There is a workaround for this kind of thing. Not exactly elegant, but it does the job. I, too, prefer to keep a Reference library on a NAS, rather than keeping the library and originals on the system volume in Pictures (iPhoto default). It involves using the Terminal to change a file attribute (in my case the file Modification Date, but it could be anything selectable as a Finder View option) that will identify it from the pix already imported into iPhoto from an existing directory.
What I do is keep a 'touch' folder (named '_rawPix' for me) where I copy all new pix over to. When I'm ready to organize into existing subfolders, I follow the helpful directions from Rajesh Patel's blog to change Mod dates. Then I organize the mod'd files into their respective folders in the Finder on the NAS. Then I can open each folder, View by Date, drag the newer pix into iPhoto albums (ie directory equivalents), and voila...updated/refreshed iPhoto directories.
It ain't pretty, but its routine.
Message was edited by: xmiinc, for clarity -
为什么我每次修改servlet都要重新启动weblogic?
为什么我每次修改servlet都要重新启动weblogic?
我用的是weblogic6.1,sp2,操作系统是win2000.
修改了几个可能的地方,可是没有生效:
1. startWebLogic.cmd:
set STARTMODE=false
2. web.xml:
<servlet-mapping>
<servlet-name>loginA</servlet-name>
<url-pattern>/servlet/loginCheckA</url-pattern>
<load-on-startup>0</load-on-startup>
</servlet-mapping>
3. weblogic.xml:
<jsp-param>
<param-name>pageCheckSeconds</param-name>
<param-value>0</param-value>
</jsp-param>
请各位大侠指点,不胜感激!可是,在另一台机器上,每次修改servlet不需要重启weblogic就可以马
上反映出来,而那台机器的设置是:
1 在WLS管理控制台中,在该web app的Files页中,把<Reload Period>设
为1
2 the servlet classes are in the classpath of the PC
好像与两位说的相矛盾.
thx any way! -
Creation of Database link and access the same plus Snapshot creation
i want talk between two oracle server. i decided to go for snapshot creation with periodical refresh. For which i am having two oracle server's with different ip address located inside our office setup.
I have created a database link between two servers.
first server name global
userid scott
password tiger
second server name asil
userid scott
password tiger
both the user have been given dba rights.
in both the server the services and listners are all started. i gave the following command to create database link.
from asil server
create public database link global connect by scott identified by tiger using 'global'
the command was successful and the link was created. Now i tried to access a table of the scott user of the global server.
select * from emp@global;
now it is giving error. I want to know how the link can be created and how it can be accessed. i refered the 8i online documentation and done the things based on that. i expect valuble solution from all possible persons
nullA reason for this problem could be that your database is configured that a database link has to have exactly the same name like the global name of the database instance it should connect to.
Can you please provide the oracle error code / message ? With this information there might be more hints I can give you.
Maybe you are looking for
-
Sold-To Party determination by the Reporter
Hi, We are the VAR partner and using Solution Manager for incident management. Now with the Ibase, I can assign Sold to party easily. (as default) But in our configuration, it's not mandatory to enter Ibase or anything. So I need to determine Sold-to
-
I have to update but none of the merge functions is working for me
Hi, I have a table PERSON with the columns ID, NAME and SALUTATION_ID and I have a second table SALUTATION with the columns ID and NAME. I have the following person in my PERSON table (ID=1, NAME=Tobias, SALUTATION_ID=1). Now what I want to do is cha
-
Can't upload .mov files to iTunes anymore
Hi! I don't know if this just started when I upgraded to Lion and did all of the recent updates to iTunes, and added iCloud, etc, but suddenly I can't drag .mov files into iTunes like I used to be able to do. I can't add them with the Add To Library
-
Editing a film with IMOVIE and create a DVD memu with IDVD
Dear all, I edited a film with Imovie (with music, picture effects...). Now I try to create a DVD memu with IDV. For example, for a trip, I want to create a main menu (Australia) and sub menus (Sydney, Red center...). With this sub menu I want to att
-
I need help setting up InDesign CS3 from a disc.
I keep getting a message that says, "The Installer Database is Corrupt." Plz help.