-
Notifications
You must be signed in to change notification settings - Fork 19
Oracle FDW set up
prernadevbah edited this page Oct 10, 2024
·
1 revision
Note
The following steps were written to set up oracle fdw on an M1 Mac
- To set up the Postgres-Oracle connection locally, the Postgres version you have installed must be above 14.4. Run the command
brew info postgresql
- To update the version-
- Stop all Postgres containers, dBeaver, anything else using the db or postgres
brew remove postgresql
brew install postgresql
To avoid any caching issues in Docker, run the following steps
- Stop the caseflow-db postgres Container in Docker
- Remove the caseflow-db postgres Container
- Remove the caseflow_postgresdata Volume
- If you’re on a Mac, ensure that you’re running the terminal with the latest version of the xcode command line tools.
- If installing for the first time, they can be installed via the Self Service Portal
- If already installed, make sure there are no pending software updates by going to the
- System Settings -> General -> Software Updates and running the updates as needed
- The latest version of the Oracle instantclient must be installed.
- You can set it up by going through the steps in the Oracle InstantClient files section of the Caseflow Apple M1 M2 setup link
- After setting up the Oracle InstantClient add the ORACLE_HOME environment variable with the command
export ORACLE_HOME=~/Downloads/instantclient_{IC_VERSION} make install export
- Set up the oracle_fdw repo locally
- In the terminal, run the command
git clone https://github.com/laurenz/oracle_fdw.git
- In the terminal, run the command
- Install Oracle FDW
- Change directory to the oracle_fdw repo
cd oracle_fdw
- Run the following command in the oracle_fdw repo
make install
- Change directory to the oracle_fdw repo
Change directories to where Caseflow is installed locally and run the following commands
-
make up-m1
- If there are errors here try running it again
- Recreate the development and test databases
RAILS_ENV=development bundle exec rake db:create:primary db:schema:load:primary db:create:etl db:schema:load:etl
RAILS_ENV=test bundle exec rake db:create:primary db:schema:load:primary db:create:etl db:schema:load:etl
- Start up Caseflow and the docker containers using the commands in the Running Caseflow section of the Apple M1/M2 set up wiki
- In dBeaver, execute the setup_oracle_fdw.sql SQL script
Important
Make sure to update all the placeholder variables with the correct values for the development environment
- To verify the foreign tables have been successfully created, run the following SQL query in dBeaver
select * from information_schema.foreign_tables
- Home
- Acronyms and Glossary
- Caseflow products
- Caseflow Intake
- Caseflow Queue
- Appeals Consumer
- Caseflow Reader
- Caseflow eFolder
- Caseflow Hearings
- Caseflow Certification
- Caseflow APIs
- Appeal Status API
- Caseflow Dispatch
-
CSUM Roles
- System Admin
- VHA Team Management
- Active Record Queries Resource
- External Integrations
- Caseflow Demo
- Caseflow ProdTest
- Background
- Stuck Jobs
- VA Notify
- Caseflow-Team
- Frontend Best Practices
- Accessibility
- How-To
- Debugging Tips
- Adding a Feature Flag with FeatureToggle
- Editing AMA issues
- Editing a decision review
- Fixing task trees
- Investigating and diagnosing issues
- Data and Metric Request Workflow
- Exporting and Importing Appeals
- Explain page for Appeals
- Record associations and Foreign Keys
- Upgrading Ruby
- Stuck Appeals
- Testing Action Mailer Messages Locally
- Re-running Seed Files
- Rake Generator for Legacy Appeals
- Manually running Scheduled Jobs
- System Admin UI
- Caseflow Makefile
- Upgrading Postgresql from v11.7 to v14.8 Locally
- VACOLS VM Trigger Fix M1
- Using SlackService to Send a Job Alert
- Technical Talks