Hiding Control Panel Components

This is another group policy setting. You can hide the control panel component.

first, open the group policy, this time we can use the command prompt, just type gpedit.msc.
now go to USER CONFIGURATION > ADMINISTRATIVE TEMPLATES > CONTROL PANEL.
here You’ll find hide specified control panel applets.
now double click it and click ADD button, and add what component of the control panel you want to hide.
you can input it’s name like what it displayed in control panel window or it’s cpl file (you can find the cpl file in %systemroot%system32).
Now that sure hide it from control panel, but beware they can still execute the cpl file directly, so to prevent this you need to move the corresponded file to somewhere else.

ora-01033 : ORACLE initialization or shutdown in progress

oracle error ora-01033 : ORACLE initialization or shutdown in progress


Ok i have this error on my oracle 8.1.7 database with oracle developer 6i R2.
This usually happened when the computer is improperly shutdown like of power failure or BSOD.
Been searching on the internet most of the solution is to connect straight to sqlplus, like this:
- open the command prompt.
- in “c:\>”, type “sqlplus /nolog”
- in “sql>” type connect / as sysdba
Now this is the problem, based on the tutorial it should generate “connected” status, even though i’ve tried using the proper form of “connect sys/manager as sysdba” it still generating TNS error.
First since it was TNS error i look for multiple TNSNames.ora but there were no duplicity, only one found in each database and in developer folder.
So after failed asking to master google, i tried to contact the other master in the flesh. There he scribe me to do these steps:
- open command prompt.
- type “svrmgrl” so the prompt changed from “c:\>” to “svrmgrl” – there type “connect sys/manager as sysdba”
(here i finally able to connect)
- then type “shutdown immediate”, it will generate:
(ORA-01109: database not open)
(database dismounted)
(ORACLE instance shutdown)
- then you type “startup”, you’ll see the status of the database: (ORACLE instance started.)
(Total System Global Area xxxxx byte)
(Fixed Size xxxxx byte)
(Variable Size xxxxx byte)
(Database Buffers xxxxx byte)
(Redo Buffers xxxxx byte)
(Database Mounted.)

if nothing show up after that, just the ‘svrmgrl>’, then congratulation, your database is ready for transaction!




Disable Personalization




To implement the solution, please execute the following steps:

1. Go into the responsibility: System Administrator.
1.1 System : Profile
1.2 Set the Profile "Disable Self-Service Personal" to YES.
1.3 Goto Sales User responsibility.
1.4 Leads Update Page: Personalize Page Link.
1.5 Manage Levels Button.
1.6 Delete (Or Deactivate) this personalization which was affecting the page. 



Import Perionalization


Step 1) Setup profile "FND: Personalization Document Root Path"
Step 2) Functional Administrator -> Personalization Tab -> import/Export menu
Step 3) select the Personalization xml to Export or Import


1.      Log in and select iProcurement responsibility.

2. Click Receiving tab.

3.Click About this Page link on bottom left.

4. Verify and copy the value for Document Name, e.g.:
/oracle/apps/icx/por/rcv/webui/IcxPorRcvHomePG

5. Switch to Functional Administrator responsibility.

6. Click Personalization tab.

7. Enter value from step 4 in Document Path. e.g.:
/oracle/apps/icx/por/rcv/webui/IcxPorRcvHomePG

8. Mark check-box for Personalized.

9. Click Go.

10. In the results container, click 'Manage Personalizations'.

11.On Manage Personalization Levels page, mark check-box in Select column for Site Level.

12. Click the 'Delete Personalizations' button above.

13. Get Warning:
"Are you sure you want to delete personalization defined at
Site Level for Page:
/oracle/apps/icx/por/rcv/webui/IcxPorRcvHomePG ?"

14. Click: Yes

15. Personalization is now removed.

16. Go back to iProcurement responsibility.

17. Click Receiving tab.

18. See that Personalize Page link is again available.

 

To Close Inventory Period : CST_ACCOUNTINGPERIOD_PUB

Remove Peronsalization



Log in and select iProcurement responsibility.


2. Click Receiving tab.

3.Click About this Page link on bottom left.

4. Verify and copy the value for Document Name, e.g.:
/oracle/apps/icx/por/rcv/webui/IcxPorRcvHomePG

5. Switch to Functional Administrator responsibility.

6. Click Personalization tab.

7. Enter value from step 4 in Document Path. e.g.:
/oracle/apps/icx/por/rcv/webui/IcxPorRcvHomePG

8. Mark check-box for Personalized.

9. Click Go.

10. In the results container, click 'Manage Personalizations'.

11.On Manage Personalization Levels page, mark check-box in Select column for Site Level.

12. Click the 'Delete Personalizations' button above.

13. Get Warning:
"Are you sure you want to delete personalization defined at
Site Level for Page:
/oracle/apps/icx/por/rcv/webui/IcxPorRcvHomePG ?"

14. Click: Yes

15. Personalization is now removed.

16. Go back to iProcurement responsibility.

17. Click Receiving tab.

18. See that Personalize Page link is again available.

Error Approval List could not be generated



GOAL
Why isn't the approval list being built?The following message is thrown:"Error Approval List could not be generated. Please contact your System Administrator to reviewAME rules setup."Not using AME.

Solution
When not using AME, ensure that the Approval Transaction type for Purchase Requisition documenttype is NULL1. Go to Purchasing responsibility > Setup > Document Types
2. Query the requisition
3. Clear Approval Transaction type 4. Click Apply

Creating a C or Pro*C Standalone Concurrent Program in Oracle Applications




Creating a C or Pro*C Standalone Concurrent Program in Oracle Applications
==========================================================================

This note describes the basic steps to set-up a Pro*C program as a Standalone concurrent program in Oracle Applications

This note has been used for Release 10.7 and Release 11 on Unix, any differences have been noted in the text.


Overview of the steps
=====================
1) Create custom application
2) Set-up concurrent program
3) Create and compile Pro*C program
4) Make the binary using adrelink
5) Run program and check results



1) Create custom application
============================
Customisations should of course be created in a seperate area in a custom application. If you have not yet created a custom application, you should follow the steps below:-

a) Modify the APPLSYS.env file

Add the following lines

PC_TOP=$APPL_TOP/pc
export PC_TOP

Add 'PC' to the APPLFULL variable for example:-
APPLFULL='PC FND AD ALR AX AK GL RG INV PO AP FA AR OE AS PA CN WH PER PAY SSP O
TA BOM MRP WIP ENG CRP RLA VEH QA CS CE EC ICX '


b) Create directories
Create the following directorys :-
$PC_TOP
$PC_TOP/$APPLLIB
$PC_TOP/bin
$PC_TOP/$APPLOUT
$PC_TOP/$APPLLOG


c) Application-->Register
Application Name = ProC Test
Short Name = PC
Basepath = PC_TOP
Abbreviation = PC (10.7 only)
Message = APP (10.7 only)
Description = ProC Test


d) Security-->Oracle-->register
Database User Name = PC
Password = PC
Privilege = Enabled
Name = STANDARD (10.7 only)
Install Group = 0
Description = ProC Test


e) Security-->Oracle-->DataGroup
Data Group = ProC
Application = ProC Test
Application User name = APPS
(You also must define AOL application against user APPS)


f) Create user in Database
Go into SQLPLUS, connect as system to the correct database and create PC user as below
create user pc identified by pc
default tablespace <data_tablespace_name>
temporary tablespace <temp_tablespace_name>
/
grant connect to pc
/


g) Security-->Responsibility-->Define
Group = ProC Test
Application = ProC Test
Code = <not entered>
Description = ProC Test
(You do not need to specify any requests in your Requests Group at this stage)


h) Application-->Menu
Menu = PROCMAINMENU
User Menu Name = ProC Main Menu
Description = ProC Main Menu
Seq = 1
Navigator Prompt = Requests
Submenu = Requests Menu - Other Responsibilities
Description = Requests


i) Security-->Responsibility-->Define
Responsibility = ProC Test
Application = ProC Test
Responsibility Key = PROCTEST (Rel 11 only)
Data Group = ProC
Application = ProC Test
Menu = ProC Main Menu
Request Group = ProC Test
Application = ProC Test


j) Security-->User-->Define
User Name = ProC
Password = <suitable password>
Responsibility = ProC Test

2) Set-up concurrent program
============================

As System Adminstrator do the following:-

a) Concurrent-->Program-->Executable
Executable = PCTEST
Application = ProC Test
Description = ProC Test
Execution Method = Spawned
Execution File Name = PCTEST
Subroutine Name = <not entered>


b) Concurrent-->Program-->Define
Program = ProC
Short name = PROC
Application = ProC Test
Description = ProC Test
Executable Name = PCTEST
Method = Spawned
(Leave all other settings as the default)


c) Security-->Responsibility-->Request
Group = ProC Test
Application = ProC Test
Code = <not entered>
Description = ProC Test
Requests Type = Program
Requests Name = ProC
Requests Application = ProC Test

3) Create C or Pro*C programs
=============================
From the Unix prompt change directory to the $PC_TOP/$APPLLIB directory.
Copy the following files from $FND_TOP/$APPLUSR:-
EX*.c
sample.mk

Rename EXMAIN.c as pctest.c
Rename EXPROG.c as pctestprog.c
Rename sample.mk as pc.mk

Modify pctest.c as below:-
#ifndef AFPUB
#include <afpub.h>
#endif
#ifndef AFCP
#include <afcp.h>
#endif
FDRCSID("$Header: pctest.c 1.0 99/05/24 09:30:00 porting ship $");
AFP_FUNCS pctest;
int main(argc, argv)
int argc;
char *argv[];
{
afsqlopt options;
return(afprcp(argc, argv, (afsqlopt *)NULL, (afpfcn *)pctest));
}

Modify pctestprog.c as below:-
#ifndef AFPUB
#include <afpub.h>
#endif
#ifndef AFCP
#include <afcp.h>
#endif
FDRCSID("$Header: pctestprog.c 1.0 99/05/24 09:30:00 porting ship $");
boolean pctest(argc, argv, reqinfo)
int argc;
text *argv[];
dvoid *reqinfo;
{
int i;
text buffer[241];
fdpwrt(AFWRT_LOG | AFWRT_NEWLINE, "Hello World.");
fdpwrt(AFWRT_LOG | AFWRT_NEWLINE, "Hello World.");
fdpwrt(AFWRT_OUT | AFWRT_NEWLINE, "This is a test! Take one.");
fdpwrt(AFWRT_OUT | AFWRT_NEWLINE, "-------------------------");
for ( i = 0; i < argc; i++ )
{
sprintf(buffer, "argv[%d]: %s", i, argv[i]);
fdpwrt(AFWRT_OUT | AFWRT_NEWLINE, buffer);
}
return(afpend(FDP_SUCCESS, reqinfo, "")); /* For successful completion */
}

Modify pc.mk as below:-

# start of makefile
PCTEST_BIN = $(PC_TOP)/$(APPLBIN)/PCTEST
PCTEST_OBJ = $(PC_TOP)/$(APPLLIB)/pctest.o
MODULES = $(PCTEST_BIN)
all: $(MODULES)
$(PCTEST_BIN): $(PCTEST_OBJ) $(LFNDLIB) $(LPCLIB)
$(CC) $(LDFLAGS) -o $@ $(PCTEST_OBJ) \
$(LPCLIB) $(LFNDLIB) $(ORACLE_LINK)
$(CHMOD) 755 $@
$(MCS) $@
# end of makefile


4) Compile programs and make the binary using adrelink
======================================================
Ensure you are in the $PC_TOP/$APPLLIB directory

a) Set up ProC generation file and process Pro*C file (if applicable)
I am sure there is a better way of doing this, but the following works for me....

Create a shell script called pcrun with contents as below:-

proc include=. include=$FND_TOP/include include=$ORACLE_HOME/rdbms/demo include=
$ORACLE_HOME/precomp/public ireclen=161 sqlcheck=none dbms=v6 $1 | tee pcrun.log

When you want to process your ProC file, you type in 'pcrun <filename>' If any messages on screen are lost, the screen output is echoed into the file called 'pcrun.log'


b) Make the C files

Run the following commands to compile the example programs
make -f pc.mk pctest.o
make -f pc.mk pctestprog.o

Check the files pctest.o and pctestprog.o exist. If there is a file called n=Read_only_strings, then there is a problem with the CFLAGS environment file. This is set-up in the $FND_TOP/$APPLUSR/devenv file and depends on the $PLATFORM environment variable being correct. Check $PLATFORM is the correct value for your system, if not change this setting in your APPLSYS.env (or equivilent) file.


c) Generate library file

We need to create a library file for the PC module as below:-
ar rv libpc.a pctestprog.o

NOTE - the file libpc.a MUST exist for adrelink to complete. If the file does not have any object files in it then Release 10.7 adrelink will fail, whereas Release 11 will just give you a warning. This step ensures there will not be any such problems.


d) Link binaries using adrelink

Now try to relink the binaries using the following command:-
adrelink force=y ranlib=y "PC PCTEST"

Check the adrelink.log file for errors, and that PCTEST exists in the $PC_TOP/bin directory.

NOTE - If you get an error similar to "UX:make: ERROR: Must be a separator on rules line 1303 (bu39)" this is usually caused by corrupt / misaligned makefile.
Are you using tabs in the makefile ?
IE :-
$(PCTEST_BIN): $(PCTEST_OBJ) $(LFNDLIB) $(LPCLIB)
<tab>$(CC) $(LDFLAGS) -o $@ $(PCTEST_OBJ) \
If you put in spaces where <tab> should be, you will get this error.


5) Test program
===============
Login to applications as the PROC username.
Run the Concurrent Program called 'ProC'
Assuming it completes succesfully, you should see the following output:-

Log file
--------

ProC Test: Version : UNKNOWN - Development
PROC module: ProC
+---------------------------------------------------------------------------+
Current system time is xx
+---------------------------------------------------------------------------+
Hello World.
Hello World.
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is xx


Report file
-----------
This is a test! Take one.
This is a test! Take two.
-------------------------
argv[0]: PROC



References
==========

Manuals
-------
A57983 - Release 11 Installation Manual (Unix) - page B-8
A58187 - Release 11 Developers Guide - Chapter 19
A47542 - Release 10 Installation Manual (Unix) - page B-12
A12535 - AOL Reference manual - Chapter 9


Notes
-----
Bug 758459 - Release 11 - afcall.h missing see contents of this file below:-

Contents of afcall.h
--------------------
/*$Header: afcall.h 110.0 98/07/20 15:32:44 porting ship $*/
/*======================================================================+
| Copyright (c) 1998 Oracle Corporation Belmont, California, USA |
| All rights reserved. |
| Application Division |
+======================================================================+
| FILENAME |
| afcall.h |
| |
| DESCRIPTION |
| HISTORY |
| 07/20/98 Jin Liu Created. |
*----------------------------------------------------------------------*/
#ifndef AFCALL
#define AFCALL
#ifdef WIN32COMMON
#ifdef FNDPUBSTD
#define AF_CALL _stdcall
#else
#define AF_CALL _cdecl
#endif
#else
#define AF_CALL
#endif
#endif /* AFCALL */ 







Workflow Administrator Role in Oracle Applications 11i/R12




If you want to see workflow details (owned by other users) or status diagram in Oracle Applications 11i/R12 then you should belong to one of responsibilities/user listed under WF_ADMIN_ROLE. By default (in 11i & R12) this role is set to user sysadmin (In old versions 11.5.8 or prior, it used to set to *)

If you wish to change WF_ADMIN_ROLE, as per most of metalink notes either
 
1. Change it via Workflow Administrator Web Applications responsibility (Login as sysadmin >> Workflow Administrator Web Applications >> Administration)
or update table

2. SQL> update wf_resources set text=’&Enter_Admin_Name’ where name=’WF_ADMIN_ROLE’;
to set it to everyone, use

SQL> update wf_resources set text=’*’ where name=’WF_ADMIN_ROLE’; .

Problem with above solution- Execution of Autoconfig will override above settings. Autoconfig will pick value against parameter s_wf_admin_role (default value SYSADMIN) from context file $CONTEXT_FILE.
Correct way to set Workflow Administrator Role

1. First identify Workflow Role Name associated with User or Responsibility.
A. For setting Admin Role to specific user

SQL> select name from apps.wf_roles where DISPLAY_NAME like ‘&USER_NAME’ and ORIG_SYSTEM=’FND_USR’;
B. For setting it to a responsibility (so that all users with that responsibility can view other user’s Workflow)

SQL> select name from apps.wf_roles where DISPLAY_NAME like '&Responsibility_Name’ and ORIG_SYSTEM=’FND_RESP’;

SQL> select name from apps.wf_roles where DISPLAY_NAME like ‘System Administrator‘;
(output for System Administrator responsibility should look like) FND_RESP SYSADMIN SYSTEM_ADMINISTRATOR STANDARD

SQL> select name from apps.wf_roles where DISPLAY_NAME like ‘Application Developer‘; (output for Application Developer responsibility should look like)
FND_RESP FND APPLICATION_DEVELOPER STANDARD

2. Update context file ($CONTEXT_FILE) variable s_wf_admin_role (If you don’t see this parameter in context file then apply latest Autoconfig Patch) to value from above query
For Sysadmin User
- Set it to SYSADMIN

For System Administrator Responsibility
- Set it toFND_RESP SYSADMIN SYSTEM_ADMINISTRATOR STANDARD

For Application Developer Responsibility
- Set it to FND_RESPFNDAPPLICATION_DEVELOPERSTANDARD

3. Run Autoconfig -$OAD_TOP/admin/scripts/$CONTEXT_NAME/adautocfg.sh (11i)$ADMIN_SCRIPTS_HOME/adautocfg.sh (R12)

References
Note 453137.1 Oracle Workflow Best Practices Release 12 and Release 11i
Note 358090.1 Workflow Administrator Field Become Uneditable after Selecting System Administrator Responisibility
Bug 4185567- Wf System administrator Field Become Uneditable after selecting System Administrator 



ERROR 1396 (HY000): Operation ALTER USER failed for 'Mysql'@'%'

 This MySQL error — ERROR 1396 (HY000): Operation ALTER USER failed for 'Mysql'@'%' — means that MySQL cannot find the user ...