Oracle missing initSID.ora [closed] - oracle

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I learning to use Oracle database, and I just installed Oracle Database 12c Release 2 on my Ubuntu 18.04.
I login as sysdba with this following command:
sqlplus / as sysdba
So far all thing working and I got this message:
Connected to an idle instance.
Now, I want to start my server with this following command:
SQL> STARTUP
But, the thing that make me confuse are I got this error message:
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/12/dbhome_1/dbs/initSID.ora'
I checking it out on that directory, and the initSID.ora was missing.
So, where I can find the missing file..?, how to fix it..?

You need to create an SPFILE in /u01/app/oracle/product/12/dbhome_1/dbs directory to be able to start the database by only using STARTUP command.
If there's no SPFILE then a PFILE should explicitly be specified with the STARTUP command as
SQL> STARTUP PFILE=/u01/app/oracle/product/12/dbhome_1/dbs/initSID.ora
assuming you have a PFILE named initSID.ora in that directory.

Finally I figure out this by following #Tejash----ORA-00980 instructions to create a database.

Related

How to add and improve security for Oracle 11g Database which is open open publicly? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I just inherited a legacy ERP system on my new job which has Oracle 11g database. ERP is based on Java and Oracle forms. It is so old that it needs IE to run and a specific JRE 8.121 requirement.
So with the current system, users can access the ERP outside the internal network by using the server's public IP. Oracle 11g DB's listener port is open and is forwarded from the router. This is my concern with this setup. It is very easy to connect to the database.
What are possible ways to improve this setup?
Soooo many things that could be done here...
Deploy Oracle Connection manager to reverse proxy your database connections: https://pmdba.wordpress.com/2013/12/01/deploying-an-oracle-11gr2-connection-manager/
Use a hardening checklist like the DISA Security Technical Implementation Guide for Oracle 11g: https://www.stigviewer.com/stig/oracle_database_11g_instance/, https://pmdba.wordpress.com/2020/03/03/how-to-complete-a-stig-review/
Apply all patch set updates for Oracle 11g, and if at all possible upgrade to Oracle 19c as soon as possible. Security patches for 11g will end later this year, and 19c will soon be the only long-term supported version. https://pmdba.wordpress.com/2020/04/28/top-stig-part-3-software-support/
Enable auditing and have some sort of monitoring or log file analysis in place so that you can be alerted to any abnormal behavior. https://pmdba.wordpress.com/2013/12/01/real-time-oracle-11g-log-file-analysis/
The keys are to make sure that your database is not directly accessible from a public network, to harden your infrastructure as much as you can, and to have some idea what users are doing at any given time. Don't forget to make sure that your backups are secure, too, and regularly tested/validated to make sure you can recover from them.

Oracle: Creating new database remove existing user [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I used Database Configuration Assistant to create new database but afterwards notice all exsiting database user disappeared. Please help!
how you are checking the users?
run > cmd
set ORACLE_sid=<database_name_here>
sqlplus / as sysdba
select username from dba_users;
I bet you've created the new database and are logged into it instead of the existing instance (maybe?)
Check which database you are in 1 of two ways:
echo $ORACLE_SID or select name from v$database;
If you find you are logged into the new instance find your old one and switch to it:
Find all SID's installed in your environment: cat /etc/oratab
Switch to it: . oraenv then enter in the appropriate SID you found in the oratab.

Why the oracle databse is so unsafe? about "connect as" without a password [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I start a sqlplus session, and enter "connect / as sysdba". just it. then the oracle let me login, without any password and user information.
so, is this just a XE edition's feature. or all oracle version let me login without a password.
by the way, what the "connect / as sysbda" means.
I can understand this "connect user/password#db-sid". but it doesn't follow this pattern. the databse don't has a sysdba user, so what's the command mean?
From Oracle Forum Post
-- sqlplus "/as sysdba" it mean is you use OS authorization and your user must member of dba(ORA_DBA) OS group,else operation will fail.
-- sqlplus sys/pass#sid as sysdba it mean is you use passwordfile authorization .And in this case you need properly configure this file
also need set remote_login_passwordfile= EXCLUSIVE or SHARED.

Connecting WMB to database [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am new to WMB and I want to connect WMB to database. Please letme know which database will be good and please let me know the initial steps for connecting WMB to DB.
Thanks
Amit Khandelwal
WMB connects to a database via DSN. So, first thing you have to do is, creating a DSN.
Steps to create DSN will vary from OS to OS. For windows follow these steps in this link.
After creating DSN you have to attach it to your broker. Use
mqsisetdbparms for this purpose.
After giving mqsisetdbparms, you need to restart your broker.
In your message flow you have to give the same DSN name in the
"Database Source name property.
You can check if the broker is able to connect to the database using mqsicvp command.
Regarding, "which database will be good".
WMB works fine with all well known DB providers, like oracle, DB2 etc(As it uses DSN).
But since both WMB and DB2 are IBM products, I would guess they will mingle better with each other. We are using both Oracle and DB2 and we have got no complains for any of them.
Complete video Tutorial on connecting WMB to Database
All these documentation from IBM is very confusing and it takes lots of efforts in make all these things together. I found this video tutorial on youtube which explains connecting wmb to database step by step.
Configure Database on WebSphere Message Broker or Integration Bus
Connecting WMB to Database

Import one schema into another new schema - Oracle [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I have a data dmp file exported from one schema user1 using the exp commandline utility.
I want to import this dump onto another newly created (empty) schema user 2 using the imp commandline utility.
I tried a few things like:
imp system/password#tesdb fromuser=user1 touser=user2 file=E:\Data\user1.dmp log=E:\Data\user1.log
I get an error
IMP-00002: failed to open user1.dmp for read
Import file: EXPDAT.DMP >
Any help appreciated.
After you correct the possible dmp file problem, this is a way to ensure that the schema is remapped and imported appropriately. This will also ensure that the tablespace will change also, if needed:
impdp system/<password> SCHEMAS=user1 remap_schema=user1:user2 \
remap_tablespace=user1:user2 directory=EXPORTDIR \
dumpfile=user1.dmp logfile=E:\Data\user1.log
EXPORTDIR must be defined in oracle as a directory as the system user
create or replace directory EXPORTDIR as 'E:\Data';
grant read, write on directory EXPORTDIR to user2;
The issue was with the dmp file itself. I had to re-export the file and the command works fine. Thank you #Justin Cave

Resources