V9.4M4 16w48 Defects
S1279019, and S1285593. Updated path. KMM 10/21/16
After the In-Database
Deployment Package for Oracle is installed, the DBA must create the
users and grant user privileges. The DBA needs to perform these tasks
before the SAS administrator can create the objects for the Oracle
server. The users and objects are required for the SAS Embedded Process
to work.
Note: SQLPLUS or an equivalent
SQL tool can be used to submit the SQL statements in this topic.
-
Create a SASADMIN user.
To create the user accounts
for Oracle, the DBA must perform the following steps:
-
Change the directory
to /path_to_sh_file/SASEPHome/admin
.
-
Connect as SYS, using
the following command:
sqlplus sys/<password> as sysdba
-
Create and grant user
privileges for the SASADMIN user.
Here is an example of
how to create a SASADMIN user.
CREATE USER SASADMIN IDENTIFIED BY <password>
DEFAULT TABLESPACE <tablespace-name>
TEMPORARY TABLESPACE <tablespace-name>;
GRANT UNLIMITED TABLESPACE TO SASADMIN;
-
Submit the following
SQL script to grant the required privileges to the SASADMIN user.
SQL>@sasadmin_grant_privs.sql
-
Log off from the SQLPLUS
session using “Quit” or close your SQL tool.
-
Create the necessary
database objects.
To create the objects
and the SASEPunzipFUNC table function that are needed to run the scoring
model, the SAS administrator (SASADMIN) must perform the following
steps:
-
Change the current directory
to /path_to_sh_file/SASEPHome/admin
(if
you are not already there).
-
Connect as SASADMIN,
using the following command:
sqlplus sasadmin/<password>
-
Submit the following
SQL statement:
Note: You can ignore the following
errors:
ORA-00942: table or view does not exist
ORA-01432: public synonym to be dropped does not exist