Owner of PROD db
hi all,
few questions plz.
1. whos the owner of the prod db.
2. who are applsys, applsyspub, apps, icx..what r their roles, functionalities in prod db.
3. why isnt the http server,ias and portal not working in 11.5.7.3. how to apply patches. the docs in metalink arent suffice and lucid.
4. how to shutdown the prod db. couldnt shutdown as sys/change... and apps/apps.
5. has anyone got the hard copy of the oracle docs.i am ready to buy. plz..
Pleaase post the result of the following :
--> show parameter file_name_convert; --- from Test server(to check db file and log file convert)
--> select name,dbid from v$database ; -- from Test + Prod server
Also check the location of the data files ,control files and log files where they are stored on prod and test servers. Check the alert log file especially the lines of the startup of the instance on both test and prod server. Compare it .
If you find that both prod and test servers have identical structure and dbid/dbname then just use DATAPUMP(better) or traditional exp/imp to perform the refresh.
Regards,
imran khan
Similar Messages
-
Directory Setup for RAC and Oracle Restart
I have three database installations that I'd like some insight on the initial directory structure and permissions. The three installations are:
1) Prod RAC - OEL 5U2, 11.2.0.2 Grid Infrastructure, 11.2.0.2 DB EE with RAC option
2) Test RAC - OEL 5U2, 11.2.0.2 Grid Infrastructure, 11.2.0.2 DB EE with RAC option
3) Single Instance - OEL 5U2, 11.2.0.2 Grid Infrastructure Standalone (Oracle Restart), 11.2.0.2 DB EE
The they all have two users GRID (for Grid Infrastructure Software Owner) and ORACLE (for Oracle Database Software Owner).
We had a consultant install the databases. It's very weird since we have an inconsistency in directories and permission. I want to understand the inconsistency between RAC installations as well as Oracle Restart Install.
SEE BELOW: The two RAC servers have different owners for /u01/app/11.2.0.2 directory. The Oracle Restart Installation - Single Instance has the same owner as Prod RAC but different than Test RAC. What the consultant said was that ORACLE_BASE would be /u01/app/oracle for both Grid Infrastructure and Database installations. This was to apply to TEST/PROD RAC (3 node, 3 instances, 1 instance/node) and Oracle Restart installation. The GRID_HOME would be /u01/app/11.2.0.2/grid and ORACLE_HOME would be /u01/app/11.2.0.2/db_1. It seems like the owners aren't setup correctly. Why? I don't want problems with patching or upgrading. If this setup is technically incorrect what is the best way to setup so there's no owner/permission issues. Is it necessary to have two separate ORACLE_BASE's like /u01/app/grid?
PRODUCTION REAL APPLICATION CLUSTER (Displaying only one Node details)
$ cd app
drwxr-xr-x 6 root oinstall 4096 Feb 26 2011 .
drwxr-xr-x 3 root oinstall 4096 Apr 21 2009 ..
drwxrwxr-x 4 grid oinstall 4096 Feb 26 2011 11.2.0.2
drwxrwxr-x 2 emagent oinstall 4096 Feb 26 2011 emagent
drwxrwxr-x 9 oracle oinstall 4096 May 16 2011 oracle
drwxrwx--- 7 grid oinstall 4096 Feb 26 2011 oraInventory
$ cd 11.2.0.2
drwxrwxr-x 4 grid oinstall 4096 Feb 26 2011 .
drwxr-xr-x 6 root oinstall 4096 Feb 26 2011 ..
drwxr-xr-x 79 oracle oinstall 4096 Mar 29 2011 db_1
drwxr-xr-x 69 root oinstall 4096 Feb 26 2011 grid
$ cd ..
$ cd oracle
9 oracle oinstall 4096 May 16 2011 .
drwxr-xr-x 6 root oinstall 4096 Feb 26 2011 ..
drwxr-xr-x 4 oracle oinstall 4096 Feb 26 2011 admin
drwxr-xr-x 3 oracle oinstall 4096 Feb 26 2011 cfgtoollogs
drwxrwxr-x 2 grid oinstall 4096 Feb 26 2011 Clusterware
drwxrwxr-x 11 grid oinstall 4096 Feb 26 2011 diag
drwxrwxr-x 3 grid oinstall 4096 Feb 26 2011 hqrac03
drwxr----- 3 oracle oinstall 4096 May 16 2011 oradiag_oracle
drwxr-xr-x 3 root root 4096 Mar 13 2011 oradiag_root
TEST REAL APPLICATION CLUSTER (Displaying only one Node details)
$ cd app
drwxr-xr-x 6 root oinstall 4096 Jan 26 2011 ./
drwxr-xr-x 3 root oinstall 4096 Jan 26 2009 ../
drwxrwxr-x 4 root oinstall 4096 Jan 26 2011 11.2.0.2/
drwxrwxr-x 2 emagent oinstall 4096 Mar 1 2011 emagent/
drwxrwxr-x 10 grid oinstall 4096 May 16 2011 oracle/
drwxrwx--- 7 grid oinstall 4096 Jan 27 2011 oraInventory/
$ cd 11.2.0.2
drwxrwxr-x 4 root oinstall 4096 Jan 26 2011 ./
drwxr-xr-x 6 root oinstall 4096 Jan 26 2011 ../
drwxr-xr-x 80 oracle oinstall 4096 Mar 17 2011 db_1/
drwxr-xr-x 70 root oinstall 4096 Jan 27 2011 grid/
$ cd ..
$ cd oracle
drwxrwxr-x 10 grid oinstall 4096 May 16 2011 ./
drwxr-xr-x 6 root oinstall 4096 Jan 26 2011 ../
drwxr-xr-x 4 oracle oinstall 4096 Feb 2 2011 admin/
drwxr-xr-x 4 oracle oinstall 4096 Feb 2 2011 cfgtoollogs/
drwxr-xr-x 2 grid oinstall 4096 Jan 26 2011 Clusterware/
drwxrwxr-x 11 grid oinstall 4096 Jan 26 2011 diag/
drwxr-xr-x 3 grid oinstall 4096 Jan 26 2011 hqract03/
drwxr-xr-x 3 grid oinstall 4096 Mar 23 2011 oradiag_grid/
drwxr----- 3 oracle oinstall 4096 May 16 2011 oradiag_oracle/
drwxr-xr-x 3 root root 4096 Jan 27 2011 oradiag_root/
SINGLE INSTANCE DATABASE (ORACLE RESTART)
$ cd app
drwxrwxr-x 6 503 oinstall 4096 Feb 26 2011 .
drwxr-xr-x 3 root root 4096 Apr 16 2009 ..
drwxrwxr-x 4 grid oinstall 4096 Feb 26 2011 11.2.0.2
drwxrwxr-x 8 grid oinstall 4096 Feb 26 2011 oracle
drwxrwx--- 6 grid oinstall 4096 Feb 26 2011 oraInventory
$ cd 11.2.0.2
drwxrwxr-x 4 grid oinstall 4096 Feb 26 2011 .
drwxrwxr-x 6 503 oinstall 4096 Feb 26 2011 ..
drwxr-xr-x 76 oracle oinstall 4096 Apr 6 2011 db_1
drwxr-x--- 69 root oinstall 4096 Feb 26 2011 grid
$ cd ..
$ cd oracle
drwxrwxr-x 8 grid oinstall 4096 Feb 26 2011 .
drwxrwxr-x 6 503 oinstall 4096 Feb 26 2011 ..
drwxrwxr-x 5 grid oinstall 4096 Feb 26 2011 admin
drwxrwxr-x 7 grid oinstall 4096 Feb 26 2011 cfgtoollogs
drwxrwxr-x 2 grid oinstall 4096 Feb 26 2011 checkpoints
drwxrwxr-x 2 grid oinstall 4096 Feb 26 2011 Clusterware
drwxrwxr-x 11 grid oinstall 4096 Feb 26 2011 diag
drwxrwxr-x 3 grid oinstall 4096 Feb 26 2011 hqods01
Thanks so much.Hello
I did only check prod, as that is the important one.
i am afraid that setup is not clean. I won't use the work is wrong, but need to be normalized.
grid oracle base need to be separate from oracle oracle base, and the grid oracle home, MUST be outside of oracle base/oracle home of the oracle user.
In a multi user setup, the structure should be as follow.
grid user, group oinstall, asm* groups
oracle user, group oinstall, dba and db* groups
The GRID install, have, grid home and oracle base
the oracle base for grid should be, /u01/app/grid
the grid home should be, /u01/app/11.2.0.3/grid
the Oracle user have several homes, and oracle base
the oracle base for oracle should be, /u01/oracle
so, for permissions, when I create this, i do as root
mkdir -p /u01/app/11.2.0.3/grid
mkdir -p /u01/app/grid
mkdir -p /u01/app/oracle
mkdir -p /u01/app/oraInventory
chown -R grid:oinstall /u01
chown -R oracle:oinstall /u01/app/oracle
then, you install grid .. you have so say oracle home is /u01/app/grid and oracle home is /u01/app/11.2.0.3/grid
at the end, the root.sh as part of the install will take care of the permissions for oraInventory, and the rest for grid.
when grid is installed, you can move to the oracle db install you use oracle base as /u01/app/oracle and oracle home as /u01/app/oracle/product/11.2.0.3/dbhome_1
that will give you
2 4 drwxr-xr-x 6 root oinstall 4096 Sep 21 03:20 /u01
5996545 4 drwxr-xr-x 6 root oinstall 4096 Sep 18 22:58 /u01/app
5996546 4 drwxr-xr-x 8 grid oinstall 4096 Sep 18 22:50 /u01/app/grid
5996547 4 drwxr-xr-x 3 root oinstall 4096 Sep 18 22:30 /u01/app/11.2.0.3
5996548 4 drwxr-xr-x 69 root oinstall 4096 Sep 21 10:52 /u01/app/11.2.0.3/grid
5996549 4 drwxrwx--- 5 grid oinstall 4096 Oct 30 22:08 /u01/app/oraInventory
7406840 4 drwxr-xr-x 7 oracle oinstall 4096 Oct 30 22:09 /u01/app/oracle
7406841 4 drwxr-xr-x 3 oracle oinstall 4096 Sep 18 22:58 /u01/app/oracle/product
7406842 4 drwxr-xr-x 6 oracle oinstall 4096 Oct 30 22:04 /u01/app/oracle/product/11.2.0.3
7766052 4 drwxr-xr-x 77 oracle oinstall 4096 Nov 2 01:20 /u01/app/oracle/product/11.2.0.3/dbhome_1
Each user have to use his own oracle_base, as each oracle_base will store files and folders created for logs, admin, diagnostic with different permissions and different usages, for a reason you have role separation.
example of the content of each oracle base
$ find /u01/app/oracle/ -maxdepth 1 -ls
7406840 4 drwxr-xr-x 7 oracle oinstall 4096 Oct 30 22:09 /u01/app/oracle/
7406841 4 drwxr-xr-x 3 oracle oinstall 4096 Sep 18 22:58 /u01/app/oracle/product
8749076 4 drwxrwxr-x 3 oracle asmadmin 4096 Sep 18 23:03 /u01/app/oracle/diag
8749064 4 drwxr-x--- 6 oracle oinstall 4096 Oct 30 22:09 /u01/app/oracle/admin
8716289 4 drwxr-xr-x 2 oracle oinstall 4096 Oct 30 22:18 /u01/app/oracle/checkpoints
8749061 4 drwxr-x--- 5 oracle oinstall 4096 Sep 18 23:12 /u01/app/oracle/cfgtoollogs
$ find /u01/app/grid/ -maxdepth 1 -ls
5996546 4 drwxr-xr-x 8 grid oinstall 4096 Sep 18 22:50 /u01/app/grid/
7307540 4 drwxrwxr-x 4 grid oinstall 4096 Sep 18 22:49 /u01/app/grid/diag
7307474 4 drwxr-xr-x 2 grid oinstall 4096 Sep 18 22:33 /u01/app/grid/Clusterware
7307265 4 drwxr-xr-x 2 grid oinstall 4096 Sep 18 22:33 /u01/app/grid/checkpoints
7307532 4 drwxr-x--- 4 grid oinstall 4096 Sep 18 22:49 /u01/app/grid/cfgtoollogs
7406796 4 drwxr-xr-x 3 root root 4096 Sep 18 22:50 /u01/app/grid/oradiag_root
Take care,
Alvaro. -
Segment organization within tablespace
Hi There,
I was trying to organize objects within the tablespaces and moving things around when I got up to this:
I needed to get rid of the PROD_T3 tablespace so I moved everything out of it apart from the below
SQL> select owner,segment_name,segment_type, TABLESPACE_NAME,bytes/1024/1204 from dba_Segments where tablespace_name='PROD_T3' order by 3;
OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME BYTES/1024/1204
PROD PK_VOTER_REG_DOC INDEX PROD_T3 122.471761
PROD SYS_IL0000186869C00026$$ LOBINDEX PROD_T3 .053156146
PROD SYS_LOB0000186869C00026$$ LOBSEGMENT PROD_T3 .053156146
PROD PLAN_TABLE TABLE PROD_T3 .106312292
PROD BIN$IEDOLJmsSj6isKTb5Z2cOQ==$0 TABLE PROD_T3 .053156146and so I started investigating each segment in the tablespace:
SQL> select owner, index_name, table_name, tablespace_name, status from dba_indexes where index_name='PK_VOTER_REG_DOC';
OWNER INDEX_NAME TABLE_NAME TABLESPACE_NAME STATUS
PROD PK_VOTER_REG_DOC VOTER_REG_DOC PROD_T3 VALID
SQL> select owner, table_name, tablespace_name, status from dba_tables where table_name='VOTER_REG_DOC';
OWNER TABLE_NAME TABLESPACE_NAME STATUS
PROD VOTER_REG_DOC VALIDI'm a bit surprised form the above that there isn't a tablespace?!! I can describe the table and get a count for the number of rows in there:
SQL> desc prod.VOTER_REG_DOC
Name Null? Type
VOTER_ID NOT NULL NUMBER(10)
CARD_NO NOT NULL CHAR(9)
SQL> select count(*) from prod.VOTER_REG_DOC;
COUNT(*)
3656468But when I look at dba_segments, I can't see it:
SQL> select owner,segment_name, segment_type , tablespace_name from dba_segments where owner='PROD' and segment_name='VOTER_REG_DOC' order by 1,2
no rows selected
SQL>
SQL> select owner,segment_name, segment_type , tablespace_name from dba_segments where owner='PROD' and segment_name like '%VOTER_REG%' order by 2,3;
OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME
PROD PK_VOTER_REG_DOC INDEX PROD_T3
SQL>Where am I going wrong with this? Also, I was surprised to see an object or a segment called "BIN$IEDOLJmsSj6isKTb5Z2cOQ==$0" ? I thought any BIN* would be sitting in DBA_RECYCLEBIN as the object(s) been deleted or am I wrong?
Appreciate the help.
Cheers>
I believe you will find that you are looking at the definition entry for an index organized table.
select IOT_TYPE from dba_tables where table_name = 'VOTER_REG_DOC'
if it returns 'IOT' then that is what you have.
>
Bingo..
SQL> select owner, IOT_TYPE from dba_tables where table_name = 'VOTER_REG_DOC';
OWNER IOT_TYPE
PROD IOTNow that's that sorted; how about the BIN$ item? can I drop this item? How can go on about investigating it?
SQL> r
1* select owner,segment_name,segment_type, TABLESPACE_NAME,bytes/1024/1204 from dba_Segments where tablespace_name='PROD_T3' order
by segment_type
OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME BYTES/1024/1204
PROD SYS_IL0000186869C00026$$ LOBINDEX PROD_T3 .053156146
PROD SYS_LOB0000186869C00026$$ LOBSEGMENT PROD_T3 .053156146
PROD PLAN_TABLE TABLE PROD_T3 .106312292
PROD BIN$IEDOLJmsSj6isKTb5Z2cOQ==$0 TABLE PROD_T3 .053156146Edited by: rsar001 on Mar 19, 2010 1:37 PM -
How do I add default information to the Notes section of each new vm created: Basically want these 3 questions answered in the notes after the VM is created. Owner: Application: Prod/Dev: Can this be done in the GUI/Console? If so, how?Ho
So you just want the labels to be there, not the actual values.
Then you could use the Notes parameter on the New-VM cmdlet, something like this:
New-VM -Name TestVM -VMHost $esx -Datastore $ds -Notes "Field1: dummy`nField2: dummy`nField3: dummy"
The <back-tick>-n in the string is a new-line -
How to change owner of queries and transport.
Hi Experts,
Earlier the queries are designed by some other user.According to business requirements I have customised the data targets and infosets also accordingly.All queries are designed on infosets only.
If I am coming to query designer to change queries according to requirements, i am not getting change or edit mode for that,even if I saved the query with some other technical name also I am not getting change or edit mode.
While I open the opened the query it is showing the following errors :
1. Bex transport request is not available or not suitable.
2. Choose an existing request.
Up to my understanding to assign the queries to my own BEX transport requests ,how can I change the previous query owner to my user name.
If I assign to own bex transport request then
Please let me know if any information needed still.Dear,
As explained above .....go to SE09 and selct the request and change the owner...
Also,
If u use SAVE AS option for the existing query,,,then a new query opens..
and assign that query to a NEW Transport Request...
This solves ur problem...
The problem of
1. Bex transport request is not available or not suitable.
2. Choose an existing request.
is because... the query has been attached to a TR which has been already moved to Quality or Prod...
So any changes have to be put in that request which is no longer available..
So use Save AS option and assign it to a new TR.
Hope this helps u..
Best Regards,
VVenkat.. -
Subscription showing old UserID as owner, doesn't permit saving
We are using Sql Server 2008R2. My userID changed when I converted from a contractor to an employee. I'm logging in with my new userID. I can create a subscription and save it. But the subscription fails, and when I go in to edit, it shows my previous UserID.
The Active Directory administrator sits next to me, and does not see my old UserID associated with my new one. The Subscription table shows the correct owner.
Does anyone have an idea of what can be done. This problem is with newly created subscriptions. I did not have permissions to create subscriptions with my old UserID.
Thanks for any help!
Some more info ...
I can create subscriptions on our Development Server. Our Dev server is 2008, whereas Production is 2008R2. I compared the two servers'
RSReportServer.config files and nothing is different, except for lines that changed due to the version upgrade to R2. On the 2008 Dev Subscription screen, there is no "Owner:"
specified, whereas the R2 screen (Prod) shows the value as the old username.Hi Lou,
Based on my test, I find the Owner field only appears when the current user is not the creator for the subscription. And the Owner field show the owner of the subscription, means the user who create the subscription.
According to your description, it seems that you are using the current UserID when create subscriptions on your Development Server, while you are using the old UserID when create subscriptions on our Production Server.
To fix this issue, please refer to the following link:
http://www.experts-exchange.com/Database/MS-SQL-Server/MS-SQL_Reporting/Q_28415732.html
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
ALDSP 3.0 -- schema owner for stored procedure or SQL Statement
Using ALDSP, I have a need to create a physical service based on a stored procedure or a SQL statement. I am wondering what will happen when I move to another deployment environment where the schema owner changes. In our QA and Prod environments, we have a different schema owner for all tables in the application (the DBAs believe this prevents unwanted updates to a prod environment). DSP elegantly supports this for normal table- and view-based physical services by mapping schemas through the DSP console after deployment. Will I get the same type of mapping capability for stored procedures and SQL statements? I noticed that I can add a SQL-based function to a physical service...is there a way to pass in the physical table name from that data service to the procedure or SQL statement?
Thanks,
JeffSchema name substitution should work for stored procedures just like it does for tables. If it doesn't - report a bug.
You don't get any help for sql-statement based data services - dsp doesn't parse the sql provided. One thing you could do is use the default schema (following the user of your connection pool), and not specify the schema in your sql-statement. -
HI Experts,
Today i got this alert from oem grid during RMAN bakcup of the PROD database.when i try to connect the database i am able to get into to the DB successfully with out any issues.
But i am not sure why this error has come and resone behind that.Please advise.
From: Oracle OEM [mailto:[email protected]]
Sent: Tuesday, February 22, 2011 11:21 PM
To: DBA_GROUP
Subject: EM Alert: Critical:PROD.test.edu.au - Failed to connect to database instance: ORA-00257: archiver error. Connect internal only, until freed. (DBD ERROR: OCISessionBegin).
Target Name=PROD.test.edu.au
Target type=Database Instance
Host=delhi.win.test.edu.au
Occurred At=Feb 22, 2011 11:20:33 PM EST
Message=Failed to connect to database instance: ORA-00257: archiver error. Connect internal only, until freed. (DBD ERROR: OCISessionBegin).
Severity=Critical
Acknowledged=No
Notification Rule Name=Database Availability and Critical States
Notification Rule Owner=SYSMAN
when i check the alertlog file i could see the following
Tue Feb 22 23:01:36 2011
Starting control autobackup
Control autobackup written to DISK device
handle '/oracledb/rman_backup/PROD/control_c-197342269-20110222-01'
Tue Feb 22 23:22:42 2011
Errors in file /oracle/admin/PROD/udump/hubprd_ora_27069.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-01438: value larger than specified precision allowed for this column
ORA-06512: at line 2
PLease let me know the cause of the issues and solution to overcome this issues.
Regards,
SalaiIt would appear that your archive location is full. If it is full, then try to get some more free space there by either deleting the old archives or specifying a different location.
I don't see any mention of a flash recovery area in the log message, but you may also want to confirm that you have reached your space allocated to the FRA. -
Hi All,
I am not a DBA, but recently I was assigned these duties.
My question is that we have a schema in Dev, Its has been tested now I have to move this to Prod.
I have created some scripts using Toad (database\export\tables, views etc).
Can use these scripts for import also?
Is there any other way to move a schema from Dev to Prod or visa verse?
There is one more questions, using toad I can view DBlinks but I cannot view them in Dev. I get this error ORA-00942: table or view does not exist.
any suggestion welcome
HabeebHi Everyone,
I am back and I have created a new Schema...
But I did a lot of mistakes, I created the sequences, procedures and functions logged in as SYSTEM.
the sequences I dropped them as they all had the schema name used in the name of sequence.
example: if schema name "HABTEST" then
seq name "SEQ_SCANLOG_HABTEST"
that's done.
But for Procedure and Fuction we had the same rule so I logged in as 'SYSTEM'
and droped all procedure's and function with name like 'HABTEST'.
But now there are some that don't have the schema name in the procedure name...
example:
SQL> SELECT owner, object_name, object_Type
2 from all_objects
3 where object_name = upper('batche_rcv_today');
OWNER OBJECT_NAME OBJECT_TYPE
SYSTEM BATCHES_RCVD_TODAY FUNCTION
HABTEST BATCHES_RCVD_TODAY FUNCTION
Now in this case if I execute the command
drop procedure BATCHES_RCVD_TODAY will it drop the only procedure in the system OWNER as I am logged in as SYSTEM, Technically It should and the other in HABTEST should remain intact...
I am right..??
Habeeb -
OWB10gR2 : One Repository and Multiple Enviroments(Dev , QA and Prod)
Hi All,
In 10gR1 , Runtime repository and Design repository used to be 2 different schemas. Because of this , we can simply have one repository in development and deploy the mappings into QA and Prod.
In R2 , runtime and design objects are present in a single repository. Do we need to install separate repository for each of the environments(Dev, QA and Prod) or is there a way to manage multiple envs without multiple repositories?
Thanks in Advance
MalleeHello Malle,
We are in a similar situation so our setub looks something like this.
We have a database which serves the purpose of design repository. Let's call it owbdev.
We have three target databases (data warehouse). Let's call them whdev, whqa, whprd.
In the db owbdev we configured an owb user (as owner of the repository) and various other users (as developers).
In whdev, whqa and whprd we did the same configuration except this time, we called the repository owner in each of these target databases, owbrun. This will be what we call in R2 our control center.
Then we deploy from owbdev to any of the three targets after having setup the appropriate locations and control center configurations in owbdev.
If there is a better way to do things I'm open to any and all suggestions.
Mike -
Permissions for package owner for kill session?
What permissions does a package owner need to execute immediate 'alter system kill session' within a package?
Are you sure? It works for me on 10.2.0.1 (32 bit Windows)
SYS @ jcave102 Local> drop user bob cascade;
User dropped.
Elapsed: 00:00:11.25
SYS @ jcave102 Local> select * from v$version;
BANNER
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
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Elapsed: 00:00:00.10
SYS @ jcave102 Local> create user bob identified by bob default tablespace users;
User created.
Elapsed: 00:00:00.07
SYS @ jcave102 Local> grant create session, create procedure, alter system to bob;
Grant succeeded.
Elapsed: 00:00:00.01
SYS @ jcave102 Local> conn bob/bob
Connected.
1 create or replace procedure kill_session( p_sid in number, p_serial# in number )
2 as
3 begin
4 execute immediate 'alter system kill session ''' || p_sid || ',' || p_serial# || '''';
5* end;
BOB @ jcave102 > /
Procedure created.
Elapsed: 00:00:00.57Now, find a session to kill (using a user other than BOB who doesn't have permission to view the V$SESSION table) and call the procedure
BOB @ jcave102 Local> exec kill_session( 144, 115 );
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00Justin -
SQLModel, changing owners dynamically.
I am getting ready to convert an application from ND, and it does
some unique stuff which I'm not sure how to convert, so I am
consulting the wisdom of the JATO list, in search of guidance before
I run down some dead ends.
The application renders an electronic survey form. The data for this
comes from one of two Oracle DB owners. One of the owners is
the 'live' version of a survey, the other is a 'test' version, used
while developing new surveys. A flag is passed in with the url to
determine which to use.
This was accomplished in ND by having a synonym for the table name in
the test area which pointed to a test table name. Then in ND we would
call setRuntimeUserID depending on who we wanted to be ('prod'
or 'test'). This would effectively change the owner in the dataobject
in ND. To elaborate:
In prod, we have:
prod.survey (table)
prod.test_survey (table)
In test, we have:
test.survey (synonym to test.test_survey)
In this way, all the ND DataObject needed to know was that it was
going against 'survey', and didn't care if it was a table, or a
synonym pointing to a table. All the column names were the same.
Now to JATO where I have a view bean which is looking at a model
which is pointing to a data_source_name defined in iPlanet.
What is the best way to approach this?
- Should I try to change what userid is being used by the data source
in the iPlanet container? That sounds unwise.
- Should I try to change the owner dynamically in the Model? Sounds
promising, but how would I do that?
- Should I have 2 data_sources defined, and dynamically switch which
one the Model is using? Can that even be done?
- Should I try to change the table name in the Model dynamically? Can
I even alter that at runtime?
- Should I have 2 models, and dynamically switch the binding of the
View at runtime? Not sure how to do that, and I would hate having to
maintain 2 models.
Well there is the problem. I hope I have layed it out clearly. I
really appreciate any guidance in this before I get started.
Thanks,
John HoskinsTook all day, but I finally tracked down the problem.
In the tiled view, I was getting an instance of the model, but it was
apparently different from the PrimaryModel. As soon as I changed that,
it all started working.
John
--- In SunONE-JATO@y..., "jhoskins" <john.hoskins@t...> wrote:
I decided to take a different tack on solving this problem, and am
hitting a new snag. First the new solution, then the snag:
I decided to change the list of tables being used in the where clause,
depending on whether it was a work or production call.
I changed the SELECT_SQL_TEMPLATE substituting __TABLES__ for the
actual list of tables.
Then at run time, I use the StringTokenizer2.replace() to substitute
__TABLES__ with the proper list of tables, either
"wis.surveyquestions" or "wis.work_surveyquestions".
I also used table aliases so I can use them with the field names. So
I'm actually substituting in "wis.surveyquestion sq" or
"wis.work_surveyquestion sq", and the field references in the sql look
like "sq.survey_id". I also made the same change to the
QUALIFIED_COLUMN_..., and the FIELD_... in the model interface.
Now the snag.
It doesn't work. Well it does work. It changes the table names, it
runs the sql, it even appears to return values (according to the
getSize()), but the tiled view won't display any of the rows. It runs
the nextTile once, then finishes. Do I need to do anything special
with the field creation statements when they bind the models fields to
the views fields? Did I change the field strings properly?
If the SQL looks like this:
public static final String SELECT_SQL_TEMPLATE="SELECT ALL
SQ.SURVEY_ID, ..."
I change the following in the modelImpl:
public static final String
QUALIFIED_COLUMN_WIS_SURVEYQUESTION_SURVEY_ID="SQ.SURVEY_ID";
public static final String
COLUMN_WIS_SURVEYQUESTION_SURVEY_ID="SURVEY_ID";
and this in the model interface:
public static final String
FIELD_WIS_SURVEYQUESTION_SURVEY_ID="SQ_SURVEY_ID";
The field creator in the tiled view looks like this:
if (name.equals(CHILD_SQ_SURVEY_ID)){
HiddenField child = new HiddenField(this,
getdo_survey_questionsModel(),
CHILD_SQ_SURVEY_ID,
do_survey_questionsModel.FIELD_WIS_SURVEYQUESTION_SURVEY_ID,
CHILD_SQ_SURVEY_ID_RESET_VALUE,
null);
return child;
Any pointers on what the field names, and how they should correspond
in the Models members would be appreciated.
Thanks,
John Hoskins
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...> wrote:
Just getModel(FooModel.class) whenever you want to get it.
It will always use the same instance no matter how many times you ask
for it. That's the job of the ModelManager.
Unless you want a unique instance and you ask for it by instance
name,
but since this is an ND migration, I am quite sure that is notwhat you
want.
Once you "get" the model, just set and get values or
retrieve/update/delete/insert as needed (just like ND).
c
jhoskins wrote:
OK. This makes sense, and I am getting ready to tackle this part. One
nuance I am having trouble with is communicating to the Model.
Can you
give me a hint how you would do this? The trick seems to becontacting
the model during it's construction. If this were ND, I might slip it
into a session variable. Would that be appropriate here?
John Hoskins
--- In SunONE-JATO@y..., Todd Fast <Todd.Fast@S...> wrote:
John--
No, not two instances, just a conditional in your model. There is a
method
in QueryModelBase called setDataSourceName(String), which you are
already
calling to set the JDBC datasource name. Our suggesting is that
depending
on whether you are in development or production, you can simply call
this
method with the appropriate value. The easiest place to do this
would be in
the constructor of your QueryModel itself:
pulic MyQueryModel()
super();
if (inProduction())
setDataSourceName(PROD_DATASOURCE);
else
setDataSourceName(DEV_DATASOURCE);
public static final String PROD_DATASOURCE="jdbc/foo-prod";
public static final String DEV_DATASOURCE="jdbc/foo-dev";
Make sense?
Todd
<snip>
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
[Non-text portions of this message have been removed] -
Hi
Any one pls reply me urgent
I installed OBIEE11g in m y prod machine successfully after that i tried moving all the files from DEV into PROD
below ways
Export user and Group in console dev (import in prod) using console.
Application roles and Policies (system-jazn-data.xml under user_projects/domains/bifoundation_domain/config/fmwconfig) copied from dev then place into PROD.
RPD uploaded PROD in EM
Catalog Moved dev to PROD.i set path also in instanceconfig.xml
Then
In my dev Administrator is the owner(BIadmini priviles).After moving PROD.When i login Administrator he is not have all the privileges.Even when i try to login weblogic user also not a admin user.
Where is the problem and what i missed.Could you please help me urgent.
Thanks
GramDuplicated
-
How do I replace someone else's Mac ID with my own?
Bought iPhone second hand on TradeMe.
Previous owner re-set the phone but his ICloud account stayed on now my phone. He uses his AppleID on his new iPhone now and, understandably, does not want to give me his password. Any ideas?? Please.
This issue is blocking my access to iTunes and any other file from my home computer. It keeps on telling me that I have to autorise my computer to pass on files, yet, it seems, for all this to happen, I need to get logged in through the phone's Apple ID. This of course is different to my one on my computer - and I have no password for it.
This phone is not stolen!! I payed still a fair bit for it. Am still in contact with the previous owner. He doesn't know how to fix the problem either.
Would appreciate any suggestion ????
Thanks
SamSingsSettings>general>resets>erase all content and settings.
That will put it back to its out of the box state. Set it up with your own apple Id. -
Used iPad, new owner, can't clear it & log in my ID.
I was given a used iPad. I need to reset it for my own Apple ID. I don't have their restriction code. How do I do this?
The answer I found so far in the archives pointed me to the General/Reset/Erase All content and Settings buttons, but a Passcode screen popped up and I had to stop after 2 failed guesses. Former owner, who is 90, had it set up by her daughter. Her daughter set it up with her own account ID, etc. I emailed her to ask for the Passcode, but if she doesn't know it, I don't know how to proceed. I signed into iCloud, but when I go to open that, it asks for my password only, with her iCloud ID already input and no way to input mine instead.
I was able to change the iCloud sign in to my own account, so I don't want to accidentally erase that.
I am writing this on my laptop. Please help, if only to link me to a better archived answer. Thank you.If the original owner cannot remember the password and cannot erase the device for you, then it is now and always be useless. There is nothing that you can do now to make it yours if she can't remember the passcode to erase it.
This is what the original owner needs to do.
What to do before selling or giving away your iPhone, iPad ...
Maybe you are looking for
-
Dual monitor setup - primary monitor blank upon startup
Hello - This has been vexing me for some time now. I've seen hints of this issue from other people but never the exact same circumstances and never do I see a definitive answer. I have a dual monitor arrangement on my 8 core Clovertown (first generat
-
Cant instal my itunes after resetting pc to factory settings
After resetting my pc back to factory settings I downloaded itunes but it wont instal. I get a message saying contact application vendor to verify this is a valid windows installer. Can anyone help please
-
Black screen says no operating system
i have a MacBook pro set up with dual operating systems with bootcamp i was stuck on the windows operating system now all that is coming up is a black screen that says missing operating system when i turn it on. i am no computer whiz so im going to n
-
U2018The next generation of SAP B1 add-onsu2019 - The power of mobility.
AbacusConsulting has come out with the next generation of SAP Business One add-ons. The SAP Business One Mobilizer! Now the conventional boundaries have been broken down and limitless possibilities are within grasp with the introduction of the SBO Mo
-
Hi all Im programming in Java using Mac OS X and Windows XP. Im using a tool called Netbeans. On the Mac OS X side can i intergrate XGrid technology into my Java applications using the tool, Netbeans? Or is XGrid exclusive to XCode and the languages