Scenes:
java project, database links oracle 12c
Use sqlplus and plsql development and dbvisualizer can be linked database
But to start using java jdbc link project was an error: Can not create PoolableConnectionFactory
the reason:
ORACLE_SID environment variable configuration issues
Resolution process:
1. Check whether the oracle ORACLE_SID server configuration is an example of the current configuration
echo $ORACLE_SID
General configuration file
vim ~/.bash_profile
2. Check database start
lsnrctl status
3. Check the monitor configuration
cd $ORACLE_HOME/network/admin
cat listener.ora