Documentation ¶
Overview ¶
Copyright © 2020 Marvin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func GatherOracleOverview(schemaName []string, oracle *oracle.Oracle, reportUser, reportName string) (*ReportOverview, *ReportSchema, error)
- func GenNewHTMLReport(reportOverview *ReportOverview, reportSchema *ReportSchema, ...) error
- type ListSchemaActiveSession
- type ListSchemaCodeType
- type ListSchemaConstraintType
- type ListSchemaIndexType
- type ListSchemaPartitionTableCountsCheck
- type ListSchemaSequenceNameLengthCheck
- type ListSchemaSynonymType
- type ListSchemaTableAndIndexCountsCheck
- type ListSchemaTableAvgRowLength
- type ListSchemaTableColumnNameLengthCheck
- type ListSchemaTableColumnTypeAndMaxLength
- type ListSchemaTableIndexNameLengthCheck
- type ListSchemaTableIndexRowLengthCheck
- type ListSchemaTableNameLengthCheck
- type ListSchemaTableNumberTypeCheck
- type ListSchemaTableObjectCounts
- type ListSchemaTablePartitionType
- type ListSchemaTableRowLengthCheck
- type ListSchemaTableRowsTOP
- type ListSchemaTableSizeData
- type ListSchemaTemporaryTableCounts
- type ListSchemaViewNameLengthCheck
- type ListUsernameLengthCheck
- type Report
- type ReportCheck
- type ReportOverview
- type ReportSchema
- type ReportType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatherOracleOverview ¶
func GatherOracleOverview(schemaName []string, oracle *oracle.Oracle, reportUser, reportName string) (*ReportOverview, *ReportSchema, error)
func GenNewHTMLReport ¶
func GenNewHTMLReport( reportOverview *ReportOverview, reportSchema *ReportSchema, reportType *ReportType, reportCheck *ReportCheck, file *os.File) error
Types ¶
type ListSchemaActiveSession ¶
type ListSchemaActiveSession struct { Rownum string DBID string InstanceNumber string SampleID string SampleTime string SessionCounts string }
func GatherOracleMaxActiveSessionCount ¶
func GatherOracleMaxActiveSessionCount(oracle *oracle.Oracle) ([]ListSchemaActiveSession, error)
type ListSchemaCodeType ¶
func GatherOracleSchemeCodeType ¶
func GatherOracleSchemeCodeType(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaCodeType, error)
type ListSchemaConstraintType ¶
func GatherOracleConstraintType ¶
func GatherOracleConstraintType(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaConstraintType, error)
type ListSchemaIndexType ¶
func GatherOracleSchemaIndexType ¶
func GatherOracleSchemaIndexType(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaIndexType, error)
Oracle Database Type
type ListSchemaPartitionTableCountsCheck ¶
type ListSchemaPartitionTableCountsCheck struct { Schema string TableName string PartitionCounts string }
func GatherOraclePartitionTableCountsCheck ¶
func GatherOraclePartitionTableCountsCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaPartitionTableCountsCheck, error)
Oracle Database Check
type ListSchemaSequenceNameLengthCheck ¶
type ListSchemaSequenceNameLengthCheck struct { Schema string SequenceName string OrderFlag string }
func GatherOracleSequenceNameLengthCheck ¶
func GatherOracleSequenceNameLengthCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaSequenceNameLengthCheck, error)
type ListSchemaSynonymType ¶
func GatherOracleSchemaSynonymType ¶
func GatherOracleSchemaSynonymType(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaSynonymType, error)
type ListSchemaTableAndIndexCountsCheck ¶
func GatherOracleTableColumnCountsCheck ¶
func GatherOracleTableColumnCountsCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableAndIndexCountsCheck, error)
func GatherOracleTableIndexCountsCheck ¶
func GatherOracleTableIndexCountsCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableAndIndexCountsCheck, error)
type ListSchemaTableAvgRowLength ¶
func GatherOracleSchemaTableAvgRowLength ¶
func GatherOracleSchemaTableAvgRowLength(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableAvgRowLength, error)
type ListSchemaTableColumnNameLengthCheck ¶
type ListSchemaTableColumnNameLengthCheck struct { Schema string TableName string ColumnName string }
func GatherOracleColumnNameLengthCheck ¶
func GatherOracleColumnNameLengthCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableColumnNameLengthCheck, error)
type ListSchemaTableColumnTypeAndMaxLength ¶
type ListSchemaTableColumnTypeAndMaxLength struct { Schema string DataType string Counts string MaxDataLength string }
func GatherOracleSchemaColumnTypeAndMaxLength ¶
func GatherOracleSchemaColumnTypeAndMaxLength(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableColumnTypeAndMaxLength, error)
type ListSchemaTableIndexNameLengthCheck ¶
func GatherOracleIndexNameLengthCheck ¶
func GatherOracleIndexNameLengthCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableIndexNameLengthCheck, error)
type ListSchemaTableIndexRowLengthCheck ¶
type ListSchemaTableIndexRowLengthCheck struct { Schema string TableName string IndexName string ColumnLength string }
func GatherOracleTableIndexRowLengthCheck ¶
func GatherOracleTableIndexRowLengthCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableIndexRowLengthCheck, error)
type ListSchemaTableNameLengthCheck ¶
func GatherOracleTableNameLengthCheck ¶
func GatherOracleTableNameLengthCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableNameLengthCheck, error)
type ListSchemaTableNumberTypeCheck ¶
type ListSchemaTableNumberTypeCheck struct { Schema string TableName string ColumnName string DataPrecision string DataScale string }
func GatherOracleTableNumberTypeCheck ¶
func GatherOracleTableNumberTypeCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableNumberTypeCheck, error)
type ListSchemaTableObjectCounts ¶
func GatherOracleSchemaObjectOverview ¶
func GatherOracleSchemaObjectOverview(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableObjectCounts, error)
type ListSchemaTablePartitionType ¶
type ListSchemaTablePartitionType struct { Schema string TableName string PartitionType string SubPartitionType string }
func GatherOracleSchemaPartitionType ¶
func GatherOracleSchemaPartitionType(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTablePartitionType, error)
type ListSchemaTableRowLengthCheck ¶
func GatherOracleTableRowLengthCheck ¶
func GatherOracleTableRowLengthCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableRowLengthCheck, error)
type ListSchemaTableRowsTOP ¶
type ListSchemaTableRowsTOP struct { Schema string TableName string TableType string TableSize string }
func GatherOracleSchemaTableRowsTOP ¶
func GatherOracleSchemaTableRowsTOP(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableRowsTOP, error)
type ListSchemaTableSizeData ¶
type ListSchemaTableSizeData struct { Schema string TableSize string IndexSize string LobTableSize string LobIndexSize string AllTablesRows string }
func GatherOracleSchemaOverview ¶
func GatherOracleSchemaOverview(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTableSizeData, error)
type ListSchemaTemporaryTableCounts ¶
func GatherOracleSchemaTemporaryTable ¶
func GatherOracleSchemaTemporaryTable(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaTemporaryTableCounts, error)
type ListSchemaViewNameLengthCheck ¶
func GatherOracleViewNameLengthCheck ¶
func GatherOracleViewNameLengthCheck(schemaName []string, oracle *oracle.Oracle) ([]ListSchemaViewNameLengthCheck, error)
type ListUsernameLengthCheck ¶
func GatherOracleUsernameLengthCheck ¶
func GatherOracleUsernameLengthCheck(schemaName []string, oracle *oracle.Oracle) ([]ListUsernameLengthCheck, error)
type ReportCheck ¶
type ReportCheck struct { ListSchemaPartitionTableCountsCheck []ListSchemaPartitionTableCountsCheck ListSchemaTableRowLengthCheck []ListSchemaTableRowLengthCheck ListSchemaTableIndexRowLengthCheck []ListSchemaTableIndexRowLengthCheck ListSchemaTableColumnCountsCheck []ListSchemaTableAndIndexCountsCheck ListSchemaIndexCountsCheck []ListSchemaTableAndIndexCountsCheck ListSchemaTableNumberTypeCheck []ListSchemaTableNumberTypeCheck ListUsernameLengthCheck []ListUsernameLengthCheck ListSchemaTableNameLengthCheck []ListSchemaTableNameLengthCheck ListSchemaTableColumnNameLengthCheck []ListSchemaTableColumnNameLengthCheck ListSchemaTableIndexNameLengthCheck []ListSchemaTableIndexNameLengthCheck ListSchemaViewNameLengthCheck []ListSchemaViewNameLengthCheck ListSchemaSequenceNameLengthCheck []ListSchemaSequenceNameLengthCheck }
func GatherOracleCheck ¶
func GatherOracleCheck(schemaName []string, oracle *oracle.Oracle) (*ReportCheck, error)
type ReportOverview ¶
type ReportOverview struct { ReportName string ReportUser string HostName string PlatformName string DBName string GlobalDBName string ClusterDB string ClusterDBInstance string InstanceName string InstanceNumber string ThreadNumber string BlockSize string TotalUsedSize string HostCPUS string HostMem string CharacterSet string }
func GatherOracleDBOverview ¶
func GatherOracleDBOverview(oracle *oracle.Oracle, reportName, reportUser string) (*ReportOverview, error)
Oracle Database Overview
type ReportSchema ¶
type ReportSchema struct { ListSchemaActiveSession []ListSchemaActiveSession ListSchemaTableSizeData []ListSchemaTableSizeData ListSchemaTableRowsTOP []ListSchemaTableRowsTOP ListSchemaTableObjectCounts []ListSchemaTableObjectCounts ListSchemaTablePartitionType []ListSchemaTablePartitionType ListSchemaTableColumnTypeAndMaxLength []ListSchemaTableColumnTypeAndMaxLength ListSchemaTableAvgRowLength []ListSchemaTableAvgRowLength ListSchemaTemporaryTableCounts []ListSchemaTemporaryTableCounts }
type ReportType ¶
type ReportType struct { ListSchemaIndexType []ListSchemaIndexType ListSchemaConstraintType []ListSchemaConstraintType ListSchemaCodeType []ListSchemaCodeType ListSchemaSynonymType []ListSchemaSynonymType }
func GatherOracleType ¶
func GatherOracleType(schemaName []string, oracle *oracle.Oracle) (*ReportType, error)