Oracle DB: default Temp TableSpace - oracle

From Oracle Doc
"When the SYSTEM tablespace is locally managed, you must define at
least one default temporary tablespace when creating a database. A
locally managed SYSTEM tablespace cannot be used for default temporary
storage."
what is "SYSTEM tablespace is locally managed" ?
which is default temp table space system or temp ?
Thanks

Related

how fix login oracle problem 'invalid username/password; logon denied' in oracle 18c

I installed Oracle18c XE and with SYS user I run these statements:
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
ALTER SESSION SET CONTAINER=XEPDB1;
Then iI create TableSpace
CREATE TABLESPACE A251_TABLESPACE DATAFILE 'a251_data.dbf' SIZE 100M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE 1G;
CREATE TEMPORARY TABLESPACE A251_TEMP_TABLESPACE TEMPFILE 'a251_data_temp.dbf' SIZE 100M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE 1G;
And I created user ashmeta .
CREATE USER ashmeta IDENTIFIED BY ashmeta
DEFAULT TABLESPACE A251_TABLESPACE
TEMPORARY TABLESPACE A251_TEMP_TABLESPACE;
and I grant DBA to ashmeta.
So why when I want connect to this user do I see this error?
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
You are creating a local user in a PDB, so you can only connect to it via listener.
This can be achieved either by putting an entry into tnsnames.ora or by EZconnect. The latter does not need further configuration:
connect ashmeta/ashmeta#localhost:1521/XEPDB1
This works as long the database runs locally and the service name of the PDB is XEPDB1. If the database instance runs on a different host, use that hostname instead of localhost. The service name of the PDB you can find out by asking when connected to the PDB by issuing
show parameter service_names

Cannot start Oracle-XE 18c due to being full

I am unable to start a container inside oracel 18c xe , when using command "Alter Datbase Open" it gives error
"ORA-12954: The request exceeds the maximum allowed database size of 12 GB"
Upon searching internet i have found a way which says
"The only way was to append the XE datafiles in a "auxiliary" Oracle 18c home"
But i am unable to understnad how to mount only single tablespace from my xe database into Home version and remove not required stuff from the tablespace to free up space. Any help regarding this is appreciated
There is a bug in Oracle XE which allows a BigFile tablespace being created in a container DB and grow beyond the DB size limit imposed by Oracle Express Edition. The bug is fixed on version 19.1.0.
Unfortunately there is no workaround for this bug.
You might try to open the database with the problematic tablespace in OFFLINE and perform the following actions:
1.Start the database in mount state
SQL> STARTUP MOUNT
2.Put the tablespace in offline,
SQL> ALTER TABLESPACE xxxxx OFFLINE IMMEDIATE;
3.Open the database
SQL> ALTER DATABASE OPEN ;
In this status, the problematic tablespace is offline, so you can't access any element on it. Remove everything you don't need from other tablespaces ( USERS , etc) and resize others to a lower size ( UNDO , TEMP, SYSTEM ), if possible. Then, try also to resize the problematic datafile ( if the data is beyond the HWM it won't work ).
Finally, put the tablespace that was offline online again and see if the total size of the database is lower than the limit. Then try to open the database.

Is it possible to customize default tablespaces when installing Oracle Database 12c?

I'm having trouble with an Oracle Database 12c Release 1 install for Linux. I am expecting to see a 'DATA01' tablespace and 'INDEX01' tablespace after I finish installation and database setup.
I follow the guide at this link https://oracle-base.com/articles/12c/oracle-db-12cr1-installation-on-oracle-linux-7. After the install I end up with the following default tablespaces: SYSTEM , SYSAUX , USERS , UNDOTBS1 , and TEMP.
Am I missing some customization steps to get the 'DATA01' and 'INDEX01' tablespaces to show up or should I not expect those additional tablespaces?
I am expecting to see a 'DATA01' tablespace and 'INDEX01' tablespace after I finish installation and database setup.
Why are you expecting that? Default installation installs default tablespaces. If you want to take control over it, create the database yourself, starting with create database command.
It allows you to specify default (that would be your data01), temporary and undo tablespaces. Index (or any other) tablespace is added separately with create tablespace command. Nowadays, it is usual to let Oracle handle that itself. Previously, people did create separate tablespaces for data and indexes to improve performance, but today that's not to be done.
Finally, this question should probably be placed on SE DBA, not here (as we're mostly developers).

How to start Oracle 12c database when table space file was accidentally deleted

I've accidentally deleted a tablespace file and now Oracle 12c will not open.
How can I remove this tablespace from oracle without the database being open?
If you have deleted the datafiles then you have to restore it from the physical backup if you don't want loose data.
Performing Complete Recovery of a Tablespace
The datafiles information is checked by Oracle during open database process. It means you can mount the database and make the datafile offline.
ALTER DATABASE DATAFILE 'path to datafile' OFFLINE;
ALTER DATABASE OPEN;
ALTER DATABASE DATAFILE '/u02/oracle/rbdb1/stuff01.dbf' OFFLINE;

Removing user-created datafile from SYSTEM tablespace in Oracle

While attempting to create a replacement tablespace for USER, I accidentally created a datafile in SYSTEM
Too many applications are using the database to bring down the entire database, and people will get hurt if these applications are not running.
Is there a way for me to remove the datafiles from the SYSTEM tablespace without bringing it down?
I tried:
ALTER TABLESPACE SYSTEM DROP DATAFILE 'path_here.dbf'
but get this error:
Error starting at line 1 in command:
alter tablespace system drop datafile 'path_here.dbf'
Error report:
SQL Error: ORA-01541: system tablespace cannot be brought offline; shut down if necessary
01541. 00000 - "system tablespace cannot be brought offline; shut down if necessary"
*Cause: Tried to bring system tablespace offline
*Action: Shutdown if necessary to do recovery
From the Oracle 11.1 documentation
You cannot drop datafiles in the SYSTEM tablespace.
However you can resize data files.

Resources