Instances and References
How does this work ?
Suppose I have a self defined class called Player
class Player {
String strName;
int iNumber
public Player()
}And I would like to use an object of Player in my Applet programm, so i have to declare and initialize this object:
public class MyQuestion extends Applet {
private Player player1;
public void init() {
player1 = new Player();
}... O.k; that is good, but how does this next programm work?
public class MyQuestion extends Applet {
String str;
public void init() {
str = ("OK");
this.add(new Button(str));
}and without declaration or initialization ?
Thanks in advance
Chaib
How does this work ?
Suppose I have a self defined class called Player
And I would like to use an object of Player in my
Applet programm, so i have to declare and initialize
this object:To be precise, you declare a reference variable, and assign to it the reference returned by the "new" operator.
>
Player player1;
player1 = new Player();
}... O.k; that is good, but how does this next
programm work?
String str;
str = ("OK"); //<-- braces are redundant
}and without declaration or initialization ?How so without? A String reference variable (str) is declared. It's assigned a reference to the String literal "OK".
Similar Messages
-
Multiple Instances and schemas to One
Hi,
Good Morning to all gurus.
Using Oracle Version 11.2.0.2
We have a database With 4 instances and Each Instance will be having 10 to 15 schemas Based on Countries. Here in all schemas we will be having Huge data's (count may be 3 to 5 crores for some 10 tables)
Now am keen to Know If i change the above to a single instance and Single Schema(Common for all countries) What Pros and cons Will be there (Technical).
Any Links or Answers are highly appreciated.
HOPE GURUS Here can help me study and understand the above scenarios.
Regards,
Simma....http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2246908001297
cons:
o harder to manage
o harder to upgrade
o harder to patch
o harder to maintain
o causes your shared pool size to increase 1,000 times (shared sql goes down the tubes)
o takes more space
o queries against the dictionary will be impacted
o latching on the shared pool goes WAY up (latching = locks = serialization device =
slows you down)
pros:
o none that I can think of.
https://forums.oracle.com/thread/1032030
Seperate schemas have advantages with security, privacy, seperation of duties, and change control. Seperate schemas also have the advantage of logical granularity / grouping for easier management, upgrade, decommission, scalability, hardware or software migration.
Yes, you can develop applications faster if you don't have to think about security, scalability etc, but it will come back to haunt you later.
RobertGeier
AND
Separate schemas have the disadvantage of requiring additonal grants and privileges to support the reference of non-owned objects used in stored code and to support FK definitions across tables owned by different users.
Naming standards and system codes can be used to identify and segregate objects defined under one schema.
The use of solid naming standards with a well chosen group of owners (schemas) would likely be a good compromise. The choice really depends on how large the applicaiton is going to be object wise and how integrated the objects are going to be. The more integration the less separate owners is beneficial.
IMHO -- Mark D Powell -- -
What is difference between user group and reference user group?
hi
guys,
what is difference between user group and reference user group?
your regards
p.sureshHi ,
Chk the link below for your clarifiacation.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/5c/c1c81c445f11d189f00000e81ddfac/frameset.htm
Hope it helps.
Regards,
Amit
Edited by: Amit Kotwani on Sep 2, 2008 2:15 PM -
Custom Report using Metrics of Instance and Server
Hello
I need to create a custom report using different instance and server metrics like:
File System Space Available
Tablesapaces
Database Spaces usage
Sort in Memory
library Cache Hit
Data Dictionary Hit
Buffer Cache Hit
I already made the report, but I can´t change the size of the graphic (for a better presentation on my report)....
Do you know how can I change the size of the report?
I think that I´m using a "metric" so for that reason I Can´t change the size ... :(I am currently having a problem with this report and drilldown to KSB1, the cost centers selected int S_ALR_87013611 are not transferring to KSB1 and thus all the cost centers come up in the call to KSB1, are you experiencing this problem? I am on V4.7
-
How to find name of report if I know name of instance and location of instance in Output File Store
Hello all,
can somebody help me to find name of the report if I know name of report instance and also location of instance in Output File Store. It should be done via Query Builder.
It is ...rpt file as output from Crystal Reports. I tried few commands in Query Builder but usually they finished with timeout error.
Could you help me and send specific command? Or way how to change timeout of Query Builder?
Thanks.
matusHello all,
We finally found solution.
We knew that file is located on path .../Output/a_145/009/002/133521/~ce10c.....9332.rtf
This file has more than 2 GB. We tried to find which report is related and provide necessary actions.
As I mentioned we still failed due to timeout error - There was an error retrieving data from the server: CMS operation timed out after 9 minutes.
So we tried to use our testing environment. We started there QueryBuilder and there we successfully tested that we found details about files from FileStore /like Name of the report in Launch Pad, CUID, ...
SELECT SI_NAME, SI_CUID, SI_FILES FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/a_148/020/000/5268/'
or
SELECT * FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/ a_148/020/000/5268/'
Best regards,
matus -
Multiple instances and mail config
Maybe I dont understand the right concept of multiple
instances but what I did was the following:
Setup up an instance for each domain I have running as a
VHost on apache.
What I was trying to accomplish is the failover of any one
domain and also to use separate mail settings for each domain.
But this is where I seem to have misunderstood the concept of
multiple instances, is it not possible to use a different smtp
server for each domain? When my forms for each domain generates an
email I want the email to originate from that domain not the main
one setup in CF...
ThanksYour on the right track.
Set up say 4 websites (virtual hosts) eg www.mydomain1.com,
www.mydomain2.com etc
Set up 4 cf instances if you have 4 domains, maybe call them
mydomain1, mydomain2 etc
Using the Web Server configuration tool, config the cf
instance mydomain1 to virtual host mydomain1, cf instance mydomain2
to VH mydomain2 etc
The website should now be working using their own Cf
instances.
Go into the CF Admin, scroll to the bottom of the left menu
and you should see Instance Manager
Clicking on this should either reveal the 4 cf instances or
you may have to add them (should be a button)
Once you see all 4, you should be able to click on the admin
for each individual instance and change the smtp server as
appropriate.
This won't give you failover though, if a CF instance goes
down, that site is gone. Clustering is the way to give failover and
you can achieve this fairly easily.
Expanding on the above example, you would create 8 CF
instances eg mydomain1-1 mydomain1-2, mydomain2-1 mydomain2-2.
Create 4 clusters eg mydomain1cluster, mydomain2cluster etc
In the CF Administrator Add mydomain1-1, mydomain1-2
instances to mydomain1cluster etc
Using the Web Server configuration tool, config the cluster
mydomain1cluster to virtual host mydomain1 etc
each domain should now be using 2 cf instances, you will be
able to down on of those instances the the site will continue
working.
Back in the instance manager under CF Admin, you should now
have 8 instances - config mydomain1-1, mydomain1-2 to the
appropriate smtp server etc
The above is for CF MX 6 onwards too, not sure about previous
versions.
I think thats what your after? I've skimmed over some parts
above in relation to the clustering, but there's a handy doc
floating around on the web by Herrlich & Ramuschkat that will
guide you through it.
BTW, those instances can sit on multiple physical servers for
hardware redundancy. Depending on how many domains you have and the
power of your machines, this is a preferred way to go although
expensive due to multiple CF licences -
IPad mini now terrible to use, apple support no help because warranty is up. All cause by new ios8 update, wifi issues, many apps no longer work, apps that do work now crash regularly and sometimes take several instances and reboots to even open.
need help uninstalling ios8 and going back to 7 where things worked please.
-
How to get subject text and Reference Object both Screens at the Header lev
Dear Experts ,
I am getting only Notification Header Screen ( Subject Text, Notification system and User Status) at the Header of Notification and different Tabs under that screen.
I want Subject Text and Reference Object screens at header Level so that any screen Tab selected at a time I can see the Subject and Reference Object of the Notification.
Pls tell me is there any way so I can Include 2 screens( Subject and Reference Object at the Header Level.)
With best regards,
NarendraNarendra,
You can't in the standard system.
Only the tabs are configurable.
PeteA -
Standard and Reference Purchasing Org
What is the difference between standard and Reference purchasing organization?
In which scenario it is used?
Regards,
KomalDear Komal,
Please find difference of both these term & its application in simple manner.
A) Reference Purchase Organization( Also called as Central Pur Org.)
1)Used to map cross purchasing organization procurement transaction
2) Possible to use other purchasing organization to use conditions of this Purchase Organization
3) Allow to access contract
4) In customizing you can configure which data ( i.e. contract or conditions ) a purchasing organization can access
5) a multilevel reference relationship is not possible
6) Purchasing Info record for central Purchasing organization must exist.
7) This is normally at client level.
B) Standard Purchase Organization:
1) If a plant is having more than one purchasing organization , one of the purchasing organization is designated as standard Purchase Organization.
2)It is used for Transaction of pipeline material , Consignment material or stock transfer orders.
3) In source determination system automatically pulls this Purchase Organization
4) For goods issue Purchasing Info record of standard Purchase Organization is used.
5) Standard Purchase Organization info record is used for auto PO generation during GR
I thinks this will clear your concept.
If useful reward points,
Vivek Maitra -
Master pages went missing from my FrameMaker 12 setup about 4 days ago. I can see body and references pages. I have tried reinstalling. The master pages are missing from all of my FrameMaker documents, absolutely all of them. I have done two new installations of FM 12, no fix.
Does the old shortcut still work? [Esc, v, M plus its close kin Esc, v, R for Reference pages and Esc, v, B for Body pages – all case-sensitive]
Also, does "missing" mean you select View master pages and get a blank screen? while double-checking the view shortcuts, I discovered this can be replicated by turning off borders [Esc, v, b] in Master page view … if you happen to be using a Master page layout with no header or footer. But I have also, occasionally, ended up with blank master pages even when they should have had content. It's a mystery. -
Hello all,
yesterday I got one task in that I have to stored procedure for getting host name, host instance and status of that host is it running or stopped.
any body knows where exactly, In which table this details are there in BizTalk databases.
thanksStatus of the host instance is not stored in the SQL database for you to query the status using stored procedure. You have to either use Powershell or WMI to get the status.
In SQL, following table contains the details about the host like Name, LoginName, IsDisables etc but status of the host instance is not stored in the database.
SELECT * FROM BizTalkMgmtDb..adm_HostInstance
Powershell to get the status:
http://axonolympus.nl/?page_id=186&post_id=969&cat_id=6&lang=en
WMI to get the status:
https://msdn.microsoft.com/en-us/library/aa561820.aspx?f=255&MSPPError=-2147217396
https://msdn.microsoft.com/en-us/library/aa578621.aspx
Regards,
M.R.Ashwin Prabhu
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
How to attach a document to an instance and to an email
I've a requirement to attach a document to an instance and attach the same to an email. Any suggestions??
I've one suggestion see this code below:
Attach in Instance:
Fuego.Lib.Attachment attach ;
attach.create(contents : attachBinary, name : attachname, description : attachdescription);
Attach in Email :
ProcessInstance.attachments[] attachments;
foreach (a in ProcessInstance.attachments) {
attachments.extend(source : a.contents, fileName : a.fileName);
Mail reminderEmail;
reminderEmail = Mail();
reminderEmail.subject = "xxxx";
reminderEmail.from = "[email protected]";
reminderEmail.message = "xx";
reminderEmail.attachments = attachments;
MailSender sender;
sender = MailSender(mail : reminderEmail);
sender.send(implname : "mail"); -
Multiple instances and Apache 2.2
I went thru the below livedoc to create multiple instances
and then associate them with apache config..
http://tinyurl.com/yzjpsl
But the instances are all started but I have two problems.
1. I cant find the CF administrator for all the sites
2. I can go to each instance administrator page but not the
main one and also apache does not resolve the VHosts.
Thus if I type in the full domain for one of the instance
sites then I get the page not found..
SO assume my problem is with apache config since the instance
sites are started and I can access them on the LAN.
This is my changes I made to the config of apache..
# JRun Settings
LoadModule jrun_module
"C:/JRun4/lib/wsconfig/1/mod_jrun22.so"
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ssl false
JRunConfig Ignoresuffixmap false
#JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/1/jrunserver.store"
#JRunConfig Bootstrap 127.0.0.1:51020
#JRunConfig Errorurl <optionally redirect to this URL on
errors>
#JRunConfig ProxyRetryInterval 600
#JRunConfig ConnectTimeout 15
#JRunConfig RecvTimeout 300
#JRunConfig SendTimeout 15
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr
.cfswf
</IfModule>
# Use name-based virtual hosting.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/Apache2/htdocs/nathess"
ServerName www.nathess.com
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/1/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51000
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/Apache2/htdocs/mgel"
ServerName www.mariannegel.com
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/MGel/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51002
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/Apache2/htdocs/destinationcdg"
ServerName www.destinationcdg.com
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/DestinationCDG/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51003
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/Apache2/htdocs/mls"
ServerName www.multilingit.com
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/MLS/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51004
</IfModule>
</VirtualHost>I went thru the below livedoc to create multiple instances
and then associate them with apache config..
http://tinyurl.com/yzjpsl
But the instances are all started but I have two problems.
1. I cant find the CF administrator for all the sites
2. I can go to each instance administrator page but not the
main one and also apache does not resolve the VHosts.
Thus if I type in the full domain for one of the instance
sites then I get the page not found..
SO assume my problem is with apache config since the instance
sites are started and I can access them on the LAN.
This is my changes I made to the config of apache..
# JRun Settings
LoadModule jrun_module
"C:/JRun4/lib/wsconfig/1/mod_jrun22.so"
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ssl false
JRunConfig Ignoresuffixmap false
#JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/1/jrunserver.store"
#JRunConfig Bootstrap 127.0.0.1:51020
#JRunConfig Errorurl <optionally redirect to this URL on
errors>
#JRunConfig ProxyRetryInterval 600
#JRunConfig ConnectTimeout 15
#JRunConfig RecvTimeout 300
#JRunConfig SendTimeout 15
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr
.cfswf
</IfModule>
# Use name-based virtual hosting.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/Apache2/htdocs/nathess"
ServerName www.nathess.com
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/1/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51000
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/Apache2/htdocs/mgel"
ServerName www.mariannegel.com
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/MGel/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51002
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/Apache2/htdocs/destinationcdg"
ServerName www.destinationcdg.com
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/DestinationCDG/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51003
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/Apache2/htdocs/mls"
ServerName www.multilingit.com
<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Serverstore
"C:/JRun4/lib/wsconfig/MLS/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51004
</IfModule>
</VirtualHost> -
Looking to use BPEL Instance and counter inside of a transformation
I'm trying to find a way to include the BPEL instance and a counter within a BPEL transformation to create a unique key.
Example, picking up files with multiple lines and no unique keys, each file is processed as a unique BPEL instance (key 1), and would like to use the row number (of the file, but not specified in the file) as the second key.
My process takes a file from a file adapter and loads it into a database adapter if that helps.
Any ideas would be appreciated.We ended up finding a Node-set Function -> Position to return the position inside of the dataset.
-
Asm, instance and service failing to start 10g rac redhat el5
hi,
i have been following a how to guide from oracle's website about implementing a 10g rac system using el5 (http://www.oracle.com/technology/pub/articles/hunter_rac10gr2_iscsi.html), by the end of the installation and setup I had both the nodes up and running and all services were up and running. Then under the root account I rebooted one of the nodes. now when I check the status of the services I get this:
[oracle@rac01 ~]$ crs_stat -t
Name Type Target State Host
ora.orcl.db application ONLINE ONLINE rac01
ora...._taf.cs application ONLINE ONLINE rac02
ora....cl1.srv application ONLINE OFFLINE
ora....cl2.srv application ONLINE ONLINE rac02
ora....l1.inst application OFFLINE OFFLINE
ora....l2.inst application ONLINE ONLINE rac02
ora....SM1.asm application OFFLINE OFFLINE
ora....01.lsnr application ONLINE ONLINE rac01
ora.rac01.gsd application ONLINE ONLINE rac01
ora.rac01.ons application ONLINE ONLINE rac01
ora.rac01.vip application ONLINE ONLINE rac01
ora....SM2.asm application ONLINE ONLINE rac02
ora....02.lsnr application ONLINE ONLINE rac02
ora.rac02.gsd application ONLINE ONLINE rac02
ora.rac02.ons application ONLINE ONLINE rac02
ora.rac02.vip application ONLINE ONLINE rac02though I can start the asm instance manually by
srvctl start asm -n rac01and it starts but the instance and service on the rebooted node still wont start. is there a log file which tells me what the error is when it tries to start the instance? what can I do to ensure that if a node is rebooted that all of the services get started correctly and the node automatically rejoins the cluster (i thought I had set all of this from the instructions of the guide I was following).
Regards
Martin.Check ASM resource:
crs_stat -p "resource_name
$ crs_stat | grep NAME\= | grep ASM1
NAME=ora.rac01.ASM1.asm
$ crs_stat -p ora.rac01.ASM1.asm
NAME=ora.rac01.ASM1.asm
TYPE=application
ACTIVE_PLACEMENT=0
*AUTO_START*=1
CHECK_INTERVAL=600
DESCRIPTION=CRS application for ASM instance
What do you see AUTO_START?
if 1 = auto start:
or check error ASM while start... at ASM_HOME/log/rac01/racg/*
If AUTO_START=2
Oracle Clusterware is configured to start the VIP, listener, instance, ASM, database services and other resources during system boot. Starting with 10.1.0.4, it is possible to modify some resources to have their profile parameter AUTO_START set to the value 2. This means that after node reboot, or when Oracle Clusterware is started, resources with AUTO_START=2 will need to be started manually via srvctl. Please work with Oracle Support if you need to modify this attribute.
If AUTO_START=2 and need to change to 1:
Example:
$ crs_stat -p ora.rac01.ASM1.asm
NAME=ora.rac01.ASM1.asm
TYPE=application
ACTIVE_PLACEMENT=0
AUTO_START=2
$ crs_stat -p ora.rac01.ASM1.asm > ORA_CRS_HOME/crs/public/ora.rac01.ASM1.asm
$ crs_unregister ora.rac01.ASM1.asm
$ crs_stat -p ora.rac01.ASM1.asm
CRS-0210: Could not find resource 'ora.rac01.ASM1.asm
$ vi ORA_CRS_HOME/crs/public/ora.rac01.ASM1.asm.cap
AUTO_START=2
to
AUTO_START=1
$ crs_register ora.rac01.ASM1.asm
$ crs_stat -p ora.rac01.ASM1.asm
NAME=ora.rac01.ASM1.asm
TYPE=application
*AUTO_START=1*
Edited by: Surachart Opun (HunterX) on Jul 31, 2009 1:06 PM
Maybe you are looking for
-
ARCHIVE LOGS CREATED in WRONG FOLDER
Hello, I'm facing an issue with the Archive logs. In my Db the parameters for Archive logs are log_archive_dest_1 string LOCATION=/u03/archive/SIEB MANDATORY REOPEN=30 db_create_file_dest string /u01/oradata/SIEB/dbf db_create_online_log_dest_1 strin
-
Building a method with more than one result data
Hi, everyone: I'm a little shy to ask this question, however, it's been hanging in my mind for so long, so I think I'd rather make a confession on it. You may laugh at me if you want, I'm ready for that, but I more look forward to that someone can re
-
I sell items on ebay. When I copy and paste a web address it does not become an underlined CLICK ABLE LINK. It does in automatically in Internet Explorer. I prefer using Firefox. How can I fix this ??? Ron PS The same thing happens if I try to email
-
Archive REDO When One RAC Node is Down
I have a question about how redo log get archived when one of the instances in a two node RAC cluster is down (not open, not mounted). For example, let's assume instance1 was shutdown and only instance 2 is running. I have 6 redo logs: <font face="co
-
Certificate enrollment web servce GPO enablement failure
2012 Std R2 Added certificate authority role with web services configuring via library hh831625 I have verified that IIS has the default site ADPolicyProvider_CEP_Kerbos and I copied the URI <a href="https:///ADPolicyProvider_CEP_Kerbos/service.svc/C