問題タブ [oracle18c]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
sql - Oracle - How to convert Date represented by NUMBER(6,0) format
I've got data from our third party partner and every date column is coded in this NUMBER(6,0) format:
None of the last 3 digits are more than 365, so I reckon 118339
must mean 2018 + 339 days, which is December 5, 2018: '2018-12-05'
. I've never encountered this kind of format before, so I'm a bit helpless how to handle it. Is this some standardized format? Can I use some built-in convert function or should I just manually cut and convert it using some arithmetics?
I would like to sort my rows grouping by weeks, so maybe I shouldn't even convert it, but for some reason I feel converting to a date type would be more elegant. Which approach is the better?
EDIT: I've just checked my excel version of the data, and this format is in fact working as I've imagined. So the question stands.
oracle-sqldeveloper - SQL DeveloperからXEPDB1に接続
Oracle のまったくの初心者であり、これに丸 3 日以上費やしましたが、運がありませんでした。
PDB 内で何かをする必要があり、インストール直後 (Express エディション) にデフォルトで作成されていることに気付きました。その接続 URL は次のとおりです。
ローカルホスト:1521/XEPDB1
私が望むのは、自分の SQL Developer からこの PDB に接続することだけです。
いくつかのブログを読み、いくつかのビデオを見た後、いくつかの構成ファイルを変更しました。私の tnsnames.ora は次のようになります。
私のlistener.oraは次のように読みます:
以下は、リスナーを再起動した後に表示されるものです。
私が見るエラーは次のとおりです。
オプションが不足しています。どんな助けでも大歓迎です。