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 9 years ago.
Improve this question
Can the migration file be reused?
In my project,I use the migration to make the database table.
And then I sent to my friend.
But he can't use the migration command to get these tables;
Always 'Nothing to migrate',So,May I ask how you do that?
Nothing to migrate appears only if Laravel detected that migration done already. Now question is, how Laravel detect migration already done?
if you go to your database (using PhpMyadmin or Sequel pro), you will see there is a table called migrations. Laravel store all migration information to the migrations table. Do not share this table with your friend. . If you share the table already, ask your friend to empty the table.
Than run the migration again.
Related
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 2 years ago.
The community reviewed whether to reopen this question 7 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I have global user base spread globally. If I use AWS Aurora MySQL Serveless DB, and select Multi-AZ support, how to use read replica closer to the user for RO queries.
To be more specific, Primary DB will in London.
London User -> London App Server --> London DB (for read)
Tokyo user -> Tokyo App Server --> Tokyo DB (for read)
London/Tokyo user -> London/Tokyo App Server --> London DB (for write)
All I want to understand is how to force App SErver to connect to the nearest read replica.
I don't think there is an option to create a read replica for Aurora MySQL Serverless DB. Please refer to the official setup documentation here.
I think your only option is to use Aurora Global Database that spans multiple AWS regions. Read more here.
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.
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.
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
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm studying Oracle database and have to do some exercises with default "HR" schema. But I think that data in my tables is changed from default values (many students have access to DB and may be someone changed data). Where can I get SQL to construct default "HR" schema?
check here the schema is in a zip file
http://code.google.com/p/adf-samples-demos/downloads/detail?name=demoscripts.zip&can=2&q=
Just wanted to update this post that the above link won't work:
Try this instead:
http://www.oracle.com/technetwork/developer-tools/datamodeler/sample-models-scripts-224531.html
And refer this also:
http://st-curriculum.oracle.com/obe/jdev/obe11jdev/11/common/connection11g.htm#t1
Hope this helps!!
If practicing using HR Schema is your requirement, you can use the Oracle Live SQL. It has the HR Schema for you to play around with.
https://livesql.oracle.com
Old question but high Google page rank, so here goes:
They are hosted by Oracle on Github now (as of 2018):
https://github.com/oracle/db-sample-schemas
See this link: http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/installation.htm#sthref33
It's under $ORACLE_HOME/demo/schema/human_resources
I was working on a database connected via SQL developer and could not find HR schema. I wanted to create the HR schema using SQL queries. I used below scripts one by one and create the schema with the SYS user:
Check here: https://support.dbagenesis.com/knowledge-base/script-to-create-hr-schema/