Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
44db53d0
Commit
44db53d0
authored
16 years ago
by
Dennis Waldron
Browse files
Options
Downloads
Patches
Plain Diff
Fixed: ORA-01840: input value not long enough for date format
parent
788d6880
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlf/scripts/oracle/oracleCreate.sql
+9
-6
9 additions, 6 deletions
dlf/scripts/oracle/oracleCreate.sql
with
9 additions
and
6 deletions
dlf/scripts/oracle/oracleCreate.sql
+
9
−
6
View file @
44db53d0
...
...
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @(#)$RCSfile: oracleCreate.sql,v $ $Release: 1.2 $ $Release$ $Date: 2009/0
2/13
10:
1
3:1
5
$ $Author: waldron $
* @(#)$RCSfile: oracleCreate.sql,v $ $Release: 1.2 $ $Release$ $Date: 2009/0
3/08
10:3
5
:1
1
$ $Author: waldron $
*
* This script create a new DLF schema
*
...
...
@@ -167,6 +167,9 @@ AS
highValue
DATE
;
cnt
NUMBER
;
BEGIN
-- Set the nls_date_format
EXECUTE
IMMEDIATE
'ALTER SESSION SET NLS_DATE_FORMAT = "DD-MON-YYYY"'
;
-- Extract the name of the current user running the PL/SQL procedure. This name
-- will be used within the tablespace names.
SELECT
SYS_CONTEXT
(
'USERENV'
,
'CURRENT_USER'
)
...
...
@@ -259,6 +262,9 @@ AS
username
VARCHAR2
(
2048
);
expiryTime
NUMBER
;
BEGIN
-- Set the nls_date_format
EXECUTE
IMMEDIATE
'ALTER SESSION SET NLS_DATE_FORMAT = "DD-MON-YYYY"'
;
-- Extract the name of the current user running the PL/SQL procedure. This name
-- will be used within the tablespace names.
SELECT
SYS_CONTEXT
(
'USERENV'
,
'CURRENT_USER'
)
...
...
@@ -312,17 +318,14 @@ END;
/
/*
Remove s
cheduler jobs
before recreation
*/
/*
S
cheduler jobs */
BEGIN
-- Remove scheduler jobs before recreation
FOR
a
IN
(
SELECT
job_name
FROM
user_scheduler_jobs
)
LOOP
DBMS_SCHEDULER
.
DROP_JOB
(
a
.
job_name
,
TRUE
);
END
LOOP
;
END
;
/
BEGIN
-- Create a db job to be run every day and create new partitions
DBMS_SCHEDULER
.
CREATE_JOB
(
JOB_NAME
=>
'partitionCreationJob'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment