Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80167

Add environment check for Oracle database

XMLWordPrintable

    • MOODLE_404_STABLE, MOODLE_405_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-80167-401
    • MDL-80167-403
    • MDL-80167-main
    • Hide

      Initial setup

      1. Clone https://github.com/moodlehq/moodle-docker
      2. Open the Terminal.
      3. Set up path to Moodle code by running: export MOODLE_DOCKER_WWWROOT=/path/to/moodle/code
      4. Copy the config file by running: cp config.docker-template.php $MOODLE_DOCKER_WWWROOT/config.php

      Testing

      1. Run 

        export MOODLE_DOCKER_DB=oracle

      2. Start up containers by running: 

        bin/moodle-docker-compose up -d

      3. Wait for DB to come up by running: 

        bin/moodle-docker-wait-for-db

      4. Setup the Moodle instance by running: 

        bin/moodle-docker-compose exec webserver php admin/cli/install_database.php --agree-license --fullname="Docker moodle" --shortname="docker_moodle" --summary="Docker moodle site" --adminpass="test" --adminemail="admin@example.com"

      5. Open the browser and navigate to http://localhost:8000/
      6. Login as admin with username/password is admin/test.
      7. Navigate to Site administration / Server / Environment.
      8. Verify that you will see oracle_database_usage in the Other checks section.
      9. Verify that the Status column value is Check.
      10. Run below command to destroy the Moodle docker instance.

        bin/moodle-docker-compose down

         

       

       

      Show
      Initial setup Clone https://github.com/moodlehq/moodle-docker Open the Terminal. Set up path to Moodle code by running: export MOODLE_DOCKER_WWWROOT=/path/to/moodle/code Copy the config file by running: cp config.docker-template.php $MOODLE_DOCKER_WWWROOT/config.php Testing Run  export MOODLE_DOCKER_DB=oracle Start up containers by running:  bin/moodle-docker-compose up -d Wait for DB to come up by running:  bin/moodle-docker-wait- for -db Setup the Moodle instance by running:  bin/moodle-docker-compose exec webserver php admin/cli/install_database.php --agree-license --fullname= "Docker moodle" --shortname= "docker_moodle" --summary= "Docker moodle site" --adminpass= "test" --adminemail= "admin@example.com" Open the browser and navigate to http://localhost:8000/ Login as admin with username/password is admin/test. Navigate to Site administration / Server / Environment. Verify that you will see oracle_database_usage in the Other checks section. Verify that the Status column value is Check . Run below command to destroy the Moodle docker instance. bin/moodle-docker-compose down      
    • 2
    • Team Hedgehog 2024 Sprint 1.2, Team Hedgehog 2024 Sprint 1.3

      We should add an Environment check to warn that Oracle support will disappear.

      This is just a warning. Nothing should break. We want to make those administrators who are impacted by this change aware. We want them to contribute to the issue and be involved. We want them to make noise on their support contracts and fix the driver bugs. If Oracle wasn't so goddamned slow, and was supported by more architectures then we may be more inclined to support it anyway.

      We should definitely add this notice to 4.4 and up, but maybe also earlier versions of Moodle (4.1 specifically). Not sure if that's feasible.

            huongn@moodle.com Huong Nguyen
            dobedobedoh Andrew Lyons
            Meirza Meirza
            Safat Shahin Safat Shahin
            Raquel Ortega Raquel Ortega
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 36 minutes
                1d 36m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.