Need a SQL script to create a DB shell for planning
Configuration:
Planning 11.1.2.4
Windows Server 2012r2
DB: Orace 12
Virtual machine image
Running on my laptop for an environment customized. Use the SQL more interface. Ideally just a DB.
You can deploy most of the products in a single schema, if you must use a separate schema for each planning application
Here is an example of creating a user with the appropriate privileges
-- USER SQL CREATE USER EPM IDENTIFIED BY password ; -- SYSTEM PRIVILEGES GRANT CREATE TRIGGER TO EPM ; GRANT CREATE SEQUENCE TO EPM ; GRANT CREATE TABLE TO EPM ; GRANT CREATE CLUSTER TO EPM ; GRANT CREATE PROCEDURE TO EPM ; GRANT CREATE VIEW TO EPM ; GRANT CREATE TYPE TO EPM ; GRANT CREATE ANY SYNONYM TO EPM ; GRANT CREATE SESSION TO EPM ; GRANT UNLIMITED TABLESPACE TO EPM ; GRANT CREATE INDEXTYPE TO EPM ; GRANT DROP ANY SYNONYM TO EPM ;
See you soon
John
Tags: Business Intelligence
Similar Questions
-
Need a powershell script to create a local user on esx given the esx server list box
Hello
I need a powershell script to create a local user on esx in a given list entry of esx servers through a csv spreadsheet. The script should ask me the user name and the password for the user name to be created on the given list of esx servers.
Thanks in advance!
Just noticed that there is a lack of vacuum after the - password parameter.
It should be
$userName = Read-Host "Username" $password = Read-Host "Password" -AsSecureString:$true Import-Csv "C:\vmhosts.csv" | %{ Connect-VIServer -Server $_.Hostname -Credential (Get-Credential) New-VMHostAccount -Id $userName -Password $password -UserAccount:$true -GrantShellAccess:$true -Confirm:$false Disconnect-VIServer -Confirm:$false }
____________
Blog: LucD notes
Twitter: lucd22
-
Hi all
If someone can help me with a powercli script to create a new account a local administrator on all ESX and ESXi hosts in the vcenter, create a role called admin and give all access except the root. This shoulb be past by a virtual centre.
Very much appreciated to help him.
Kind regards
MelLvin
I suspect that you posted your question to the wrong thread
This requires only a minor change to the script above actually.
Something like that
$groupName = "group"$accountName = "user"$accountPswd = "password"$accountDescription = "A user" $esxlist = Get-VMHostforeach($esx in $esxlist){ Connect-VIServer -Server $esx -User root -Password "password" Try { Get-VMHostAccount -Id $groupName -Group -ErrorAction Stop | Out-Null } Catch { New-VMHostAccount -Id $groupName -GroupAccount | Out-Null } $rootFolder = Get-Folder -Name ha-folder-root Try{ $account = Get-VMHostAccount -Id $accountName -ErrorAction Stop | Set-VMHostAccount -Password $accountPswd -Description $accountDescription -AssignGroups $groupName } Catch{ $account = New-VMHostAccount -Id $accountName -Password $accountPswd -Description $accountDescription -UserAccount -GrantShellAccess -AssignGroups $groupName } $rootFolder = Get-Folder -Name ha-folder-root New-VIPermission -Entity $rootFolder -Principal $account -Role admin Disconnect-VIServer -Confirm:$false}
-
WLST Script to create the domain weblogic for IOM and OAM
Hello
I intend to set up PS3 IOM - OAM in the new environment. We intend to perform the installation in silent mode. Does anyone have example WLST to create the domain weblogic for IOM or OAM?
Thank you
Here is an example of OUD. I post this one since it's the simplest and shortest, but it is the same for OAM and IOM except that the script is much longer because they ask a lot more questions. You will need to export the variables used or replace them with the appropriate values for your system.
wait-<>
the value of timeout 600
spawn ${OUD_BASE}/${WLS_NAME}/common/bin/config.sh mode = console
# Create a WebLogic domain
wait {}
{"Enter the index number to select GOLD *" {send "1\n"}}
# Choose the components of the Weblogic Platform
wait {}
{"Enter the index number to select GOLD *" {send "1\n"}}
# | ___Oracle directory Services Manager - 11.1.2.3.0 [Oracle_OUD1] [3]
wait {}
{"Enter number exactly as it appears in the media *" {send "3\n"}}
wait {}
{"Enter number exactly as it appears in the media *" {send "n"}}
# Change the domain information
wait {}
"" Enter the value of * "{send" ${OUD_DOMAIN_NAME} \n "}}"
wait {}
{"Enter the number of the option to select GOLD *" {send "n\n"}}
# Select the target area for this domain directory
wait {}
{'Enter' new target location GOLD * {send "${OUD_BASE} / user_projects/domains\n"}}
wait {}
{'Enter' new target location GOLD * {send "n\n"}}
# Configure password and username administrator
wait {}
{"Enter the number of the option to select GOLD *" {send "2\n"}}
wait {}
"" Enter new * "{send" ${WLS_PASS} \n "}}"
wait {}
{"Enter the number of the option to select GOLD *" {send "3\n"}}
wait {}
"" Enter new * "{send" ${WLS_PASS} \n "}}"
wait {}
{"Enter the number of the option to select GOLD *" {send "n\n"}}
# Configuration mode field-> 1 | Development mode
wait {}
{"Enter the index number to select GOLD *" {send "1\n"}}
# Java SDK selection
wait {}
{"Enter the index number to select GOLD *" {send "2\n"}}
wait {}
{'Enter' new JVM Directory GOLD * {send "${JAVA_HOME} \n"}}
wait {}
{'Enter' new JVM Directory GOLD * {send "n\n"}}
# Select Optional Configuration
wait {}
{"Enter the index number to select GOLD *" {send "1\n"}}
wait {}
{"Enter the index number to select GOLD *" {send "n"}}
# Configure the Administration Server
# Change "Listen port.
wait {}
{"Enter the number of the option to select GOLD *" {send "3\n"}}
wait {}
"" Enter the value of * "{send" ${ODSM_PORT} \n "}}"
# Change 'SSL enabled.
wait {}
{"Enter the number of the option to select GOLD *" {send "4\n"}}
wait {}
{"Enter the index number to select GOLD *" {send "1\n"}}
# Change 'SSL listening Port.
wait {}
{"Enter the number of the option to select GOLD *" {send "4\n"}}
wait {}
"" Enter the value of * "{send" ${ODSM_SPORT} \n "}}"
# Then
wait {}
{"Enter the number of the option to select GOLD *" {send "n\n"}}
# wait for install
wait {}
{"Successfully created * field *" {send "\n"}}
EXPRESSIONS OF FOLKLORE
-
Need a sql script loader to load data into a table
Hello
IM new to Oracle... Learn some basic things... and now I want the steps to do to load the data from a table dump file...
and the script for sql loader
Thanks in advance
Hello
You can do all these steps for loading data...
Step 1:
Create a table in Toad to load your data...
Step 2:
Creating a data file... Create your data file with column headers...
Step 3:
Creating a control file... Create your control file to load the data from the table data file (there is a structure of control file, you can search through the net)
Step 4:
Move the data file and the control file in the path of the server...
Step 5:
Load the data into the staging table using sql loader.
sqlldr control =
data = connect as: username/password@instance.
-
Need to pay someone to create some CF components for me
Hello. I need someone to create a set of ColdFusion 8 components that will allow me to easily integrate with the Amazon Web Services; specifically about Mechanical Turk, Elastic Computing Cloud (EC2) and simple storage service (S3). All these services have API, but unfortunately no real support ColdFusion.
I am a ColdFusion developer for a long time but don't have the time to work on the components myself.
Thank you!UPDATE: I actually found all CFCS, I need for my project in the RIAForge. What a great resource.
http://ec2cfc.riaforge.org/
http://AmazonS3.riaforge.org/
http://sqscfc.riaforge.org/ -
Where the SQL Scripts running after the installation of the ODAC for Oracle Client?
I just installed ODAC for Oracle Client on a windows server that runs a database of sql server, allowing developers to connect to a web application to an Oracle/Unix database. The installation States to run SQL scripts, located in the $ORACLE_HOME\ASP.NET\SQL directory after installation. I don't know where to run them? On the ORACLE DB on the Unix server? If someone could let me know, I'd appreciate it. Thank you.You must run on the Oracle database server, but they are necessary only if you use Oracle for ASP.NET providers.
If you just install the software, so you can use OLEDB with SQL Server linked server, for example, you don't need them. What do you need to run although if this is the case is the oramtsadmin.sql script that creates the objects used by the Oracle MTS Recovery Service (if you do not have these objects created on the database) that SQL Server uses a distributed transaction for Oracle connections I think.
It will be useful,
Greg -
Hello
I need a powershell script to extract the following information for all the VMS in vcenter.
vm_name | ESX_name | Cluster_name | vm_IP_address | vNIC_name | PortGroup | vSwitch
Please note that multiple virtual machines have several vNIC where vNIC is connected to various exchanges
Here you go
$report = @() Get-VM | %{ $vm = $_ $_ | Get-Vmguest | %{ $guest = $_ if($_.Nics){ $i = 0 $_.Nics | %{ $row = "" | Select Name, Powerstate, Host, Cluster, "IP address","Nic Name",Portgroup,vSwitch $row.Name = $vm.Name $row.Powerstate = $vm.PowerState $row.Host = $vm.Host.Name $row.Cluster = ($vm.Host | Get-Cluster).Name $row."IP address" = $guest.IPAddress[$i] $row."NIC Name" = $vm.NetworkAdapters[$i].Name $row.Portgroup = $guest.Nics[$i].NetworkName $row.vSwitch = (Get-VirtualPortGroup -Name $guest.Nics[$i].NetworkName -VM $vm).VirtualSwitchName $report += $row $i++ } } else{ $row = "" | Select Name, Host, Cluster, "IP addr","Nic Name",Portgroup,vSwitch $row.Name = $vm.Name $row.Powerstate = $vm.PowerState $row.Host = $vm.Host $row.Cluster = ($vm.Host | Get-Cluster).Name $row."IP address" = "na" $row."NIC Name" = "na" $row.Portgroup = "na" $row.vSwitch = "na" $report += $row } } } $report
____________
Blog: LucD notes
Twitter: lucd22
-
Using scripts to create expressions?
I am trying to automate the creation of a bunch of expressions rather involved. Is - this it is possible to write a script that creates an expression? For example, can I write a script that sets the position of a layer to "wiggle (5,10)?
And conversely, a script can access the source code of an existing expression? If I look at the value of a layer that has a wiggle function, I just get the wiggle, not the actual code value generating these random values.
To set an expression:
myLayer.property("Position").expression = "wiggle (5,10);
To retrieve an expression
var myExpr = myLayer.property("Position").expression;
Dan
-
SQL authentication provider - create table script
Hi all!
I would use the SQL provider for my Web application authentication. I can't find the script to create tables of users/roles used by the provider.
Can you suggest me a link where I can download?
Thank you
FrankHi Frank,.
Configure the SQL authenticator:
Start Oracle XE DB and open propmt SQL to run commands below:
CREATE TABLE USERS)
U_NAME VARCHAR (200) NOT NULL,
U_PASSWORD VARCHAR (50) NOT NULL,
U_DESCRIPTION VARCHAR (1000))
;
ALTER TABLE USERS
ADD CONSTRAINT PK_USERS
PRIMARY KEY (U_NAME)
;
CREATE TABLE GROUPS)
G_NAME VARCHAR (200) NOT NULL,
G_DESCRIPTION VARCHAR (1000) NULL)
;
ALTER TABLE GROUPS
ADD CONSTRAINT PK_GROUPS
PRIMARY KEY (G_NAME)
;
CREATE TABLE GROUPMEMBERS)
G_NAME VARCHAR (200) NOT NULL,
G_MEMBER VARCHAR (200) NOT NULL)
;
ALTER TABLE GROUPMEMBERS
ADD CONSTRAINT PK_GROUPMEMS
(PRIMARY KEY)
G_NAME,
G_MEMBER
)
;
ALTER TABLE GROUPMEMBERS
ADD CONSTRAINT FK1_GROUPMEMBERS
FOREIGN KEY (G_NAME)
REFERENCE (G_NAME) GROUPS
ON DELETE CASCADEGenerally, customers can add users directly in DB with help commands below:
insert into USERS (U_NAME, U_PASSWORD, U_DESCRIPTION) values ('system', 'weblogic', 'user admin');
insert into GROUPS (G_NAME, G_DESCRIPTION) values ('Administrators', 'Administrators');
insert into values('Administrators','system') GROUPMEMBERS (G_NAME, G_MEMBER);But in this case is not encrypted password then, either you can add users via the console or WLST script to be stored in encrypted form.
We had performed above commands just to check that the user that is stored directly in the DB gets properly authenticated or not configured SQL authenticator as below
Now start weblogic admin server and console access to create the data source by the navigation Services-> JDBC-> data sources
Create the data source named SqlDS
JNDI: SqlDS
Type of DB: Oracle
: DB driver Oracle Thin XA
Name of the data base: XE
DB host:
Port: 1521
DB user:
DB password:
Even the rest of the configuration and click test Configuration. If its success click on next and it targets to "AdminServer.
Click Finish and activate chnages
Now navigate to the areas of security-> myrealm-> suppliers
Click new and supply the names of SqlAuthenticator and select Type of SQLAuthenticator
Now click on newly created provider and make the indicator of control as "sufficient".
Go to the specific page of provider:
1. check on cleartext passwords enabled.
2. provide a data name source: SqlDS
Keep the rest of the parameters it is and save this configuration. It will ask you to restart the management server.
Now, again navigate areas of security-myrealm-> users & groups >
User created directly in the DB control is listed in the table with SqlAuthenticator, once its list, go ahead and add users as below
B. Cretae users using the administration console:
Sign in to the administration console
Access areas of security-myrealm-> users & groups >
Click the users tab and try to create the new user
User name:
Select authentication provider: SqlAuthenticator
User password:
Once the table DB check creating user, this user added with password encypted musted
C. create multiple users using WLST script:
File Navigave of $DOMAIN_HOME/bin and run the file setDomainEnv as below:
UNIX:. ./setDomainEnv.sh (don't forget to put two points before /)
Windows: setDomainEnv.cmd
Now, change script depending on your environment below and run as suggested in step 3:
Connect('weblogic','weblogic123','t3://localhost:7001')
Edit()
startEdit(-1,-1,'false')
serverConfig()
CD('/SecurityConfiguration/base_domain/Realms/MYREALM/AuthenticationProviders')
ls()
CD ('SqlAuthenticator')
cmo.createUser ('vaishali', 'weblogic123', 'SQLuser')cmo.createUser ('pavashe', 'weblogic123', 'SQLuser')
Edit()
stopEdit('y')NOTE: Change username, password, and ADMIN_URL in 1st line.
Replace the domain name "base_domain" by your domain online no.: 5
Authenticator name change SQL online no: 6 by your authenticator name
Next lines create users. You need to add however to users, you need to create programmatically.
Syntax: cmo.createUser ('user_name', 'user_password', 'user_description')
Now, to save these commands in a file with the extension .py and run as below:
# java weblogic. WLST create_user.py
If your script does not have to try running each command separately. For this session WLST beginning as below:
# java weblogic. WLST
Now run above commands in the script. You will be able to debug if something went wrong during execution of script.
Kind regards
Kal -
Need help to automate a script to create user
Hi people,
Environment: 10.2.0.4.0
Platform: Sun Solaris
I had to stop a few users (about 100) in my database. But before I did, I would save the user creation script as backup (just in case I need to re - create a user).
Toad can generate the script to create user as follows
However, it is simply too tedious to do it for each user. Can someone please suggest a solution more effeienct to generate the script to create user using PL/SQL, script etc?CREATE USER TEST IDENTIFIED BY VALUES '**********' DEFAULT TABLESPACE PUBLISH TEMPORARY TABLESPACE TEMP_APP PROFILE APP_USERS PASSWORD EXPIRE ACCOUNT UNLOCK; -- 2 Roles for TEST GRANT CONNECT TO TEST; GRANT E_READONLY TO TEST; ALTER USER TEST DEFAULT ROLE ALL;
Thanks in advance
rogers42DBMS_METADATA. GET_DDL
Long value 1000000000
Select dbms_metadata.get_ddl ('USER', username)
from dba_users
whereThere are other functions in this package to other things you list.
-----------
Sybrand Bakker
Senior Oracle DBA -
Create jobs and positions via PL/SQL script
Hi, it is recommended to insert new jobs and positions via PL/SQL Script?
I know it's possible, I'm not sure if it is recommended. especially when it's via a direct insertion.
Is there an API for it?
I have about 200 + positions I need to set in our Instance of the EBS Test.
Thank you!
The APIs are the best way to do it in batches of charges-
Job: HR_JOB_API
Position: HR_POSITION_API
To know that all the seeds API, add the responsibility of integrated SOA gateway
-
Hello
Is it possible to create a .sql script that, when run, will determine what OS (Windows or Linux) Oracle is hosted on? Currently, all of our scripts are written for Windows, and I believe that, for Linux, slashes should point the other way so that the script runs.
Or, the easiest thing would be to create two copies of the script - one for Windows and for Linux? :)This is a double post, see [url https://forums.oracle.com/forums/thread.jspa?threadID=2492563&tstart=0] Original message
-
need a script to create multiple tables as the other columns in tables
I need script to create multiple tables as the other columns of tables respectively.
lets consider I want to create tables from table1... table99 like tablex1... .tablex99 columns (without data) respectively (i.e table1 as tablex1, table99 as tablex99).declare cursor c is select object_name from all_objects where object_type='TABLE'; begin for i in c loop execute immediate 'create table '||i.object_name||'_x as select * from '||i.object_name||' where 1=2'; end loop; end; use can use this and put your user names accordingly. If you get any error please post the error.
-
Creating APEX pages via SQL scripts...
Hi guys,.
I want to create APEX via Script SQL pages. The main reason for having this option I have couple of applications that contains XML files for the definition of the screen where I can read all the properties of the screen (field types, sizes, legend, etc...)
Is there a documentation or help tips where I can find the APEX page tables definitions? I found something as WWV tables but I couldn't understand it correctly...
Any help?
Thank you
Osman...Check out ApexGen, the Apex Oracle generator. It allows you to use a PL/SQL API to generate a SQL script, similar to an Apex application export file.
http://sourceforge.NET/projects/apexgen/
With ApexGen, it does not matter if you have 5 or 500 tables in your database, you can easily generate report for each table, and form pages very quickly.
M
Maybe you are looking for
-
How to remove an address former home of AutoFill?
I bought a bunch of a company called band of brothers. I entered my billing and shipping address. Somehow in the process, he used autofill to add my old address in another State, I lived 18 months ago and filled at THIS address. In the account inform
-
Microsoft Word hangs when recording
Hello everyone, I have a problem with Microsoft Word on my Mac mini. Whenever I save a document twice in a row, Word crashes. I use the latest update of Microsoft software. I tried step 4 and 5 of this page, but it does not solve the problem https://
-
I want to acess the value of a variable outside a befor even loop the loop is completed, so I am trying to create a local variable and use it to transfer data outside the loop to do simultaneous online processing. However, I am only able to update a
-
I want to fax from my computer.
Hi, the product is HP Officejet Pro 8600 - N911g My printer is hooked up with the main computer. I am in another room of office and want to send fax from my laptop to a customer. When I try to send faxes - it gives a busy signal and says driver Pleas
-
Synchronization of Outlook of Xoom - no Exchange Inbox
I was wondering if there is a way to synchronize the Inbox outlook of the thur Xoom USB or third party app. I find that a lot of apps is synchronized, calendar, contacts and tasks but no Inbox. Find it me hard to believe that this had passed unnotice